com.bea.wli.sb.sources
Class SourceUtils

java.lang.Object
  extended by com.bea.wli.sb.sources.SourceUtils

public class SourceUtils
extends Object


Field Summary
static byte[] CRLF
          Hard end-of-line
 
Constructor Summary
SourceUtils()
           
 
Method Summary
static InputStream getInputStream(Headers headers, Source content, TransformOptions options)
           
static InputStream getInputStream(Source content, TransformOptions options, String contentTransferEncoding)
           
static TransformOptions getMimeTransformOptions(TransformOptions options, javax.mail.internet.ContentType contentType)
           
static TransformOptions getMimeTransformOptions(TransformOptions options, String contentType)
           
static void writeTo(OutputStream out, Headers headers, Source content, TransformOptions options)
           
static void writeTo(OutputStream out, Source content, TransformOptions options, String contentTransferEncoding)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

public static final byte[] CRLF
Hard end-of-line

Constructor Detail

SourceUtils

public SourceUtils()
Method Detail

getInputStream

public static InputStream getInputStream(Headers headers,
                                         Source content,
                                         TransformOptions options)
                                  throws IOException,
                                         TransformException
Throws:
IOException
TransformException

getInputStream

public static InputStream getInputStream(Source content,
                                         TransformOptions options,
                                         String contentTransferEncoding)
                                  throws IOException,
                                         TransformException
Throws:
IOException
TransformException

writeTo

public static void writeTo(OutputStream out,
                           Headers headers,
                           Source content,
                           TransformOptions options)
                    throws IOException,
                           TransformException
Throws:
IOException
TransformException

writeTo

public static void writeTo(OutputStream out,
                           Source content,
                           TransformOptions options,
                           String contentTransferEncoding)
                    throws IOException,
                           TransformException
Throws:
IOException
TransformException

getMimeTransformOptions

public static TransformOptions getMimeTransformOptions(TransformOptions options,
                                                       String contentType)

getMimeTransformOptions

public static TransformOptions getMimeTransformOptions(TransformOptions options,
                                                       javax.mail.internet.ContentType contentType)