com.bea.wli.sb.sources
Class MimeSource
java.lang.Object
com.bea.wli.sb.sources.MimeSource
public class MimeSource
- extends java.lang.Object
Source representing arbitrary content with headers. Essentially this is a Source
that represents a MIME part. Headers must conform to RFC822 whereas the Source can
be any type of source.
The serialization format for this Source is a fully-compliant MIME package. This
source is also cognizant of Content-Transfer-Encoding, and it will perform the proper
encoding of the underlying content stream if the header is present. Note that this
means that the Source provided to the constructor should be in raw form and should
not be already encoded.
|
Field Summary |
static java.lang.String |
EXCLUDE_HEADERS
transform option that tells the source not to include the MIME multipart
headers when returning source content as a stream |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXCLUDE_HEADERS
public static final java.lang.String EXCLUDE_HEADERS
- transform option that tells the source not to include the MIME multipart
headers when returning source content as a stream
- See Also:
- Constant Field Values
MimeSource
public MimeSource(Headers headers,
Source content)
getHeaders
public Headers getHeaders()
getContent
public Source getContent()
getInputStream
public java.io.InputStream getInputStream(TransformOptions options)
throws java.io.IOException,
TransformException
- Throws:
java.io.IOException
TransformException
writeTo
public void writeTo(java.io.OutputStream out,
TransformOptions options)
throws java.io.IOException,
TransformException
- Throws:
java.io.IOException
TransformException
addRef
public void addRef()
dispose
public void dispose()
throws java.io.IOException
- Throws:
java.io.IOException