public class MimePartDataSource extends Object implements DataSource, MessageAware
| Constructor and Description |
|---|
MimePartDataSource(MimePart part)
Constructor with a MIME part.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream()
Returns an input stream from the MIME part.
|
MessageContext |
getMessageContext()
Returns the message context for the current part.
|
String |
getName() |
OutputStream |
getOutputStream() |
protected MimePart part
public MimePartDataSource(MimePart part)
public InputStream getInputStream() throws IOException
This method applies the appropriate transfer-decoding, based on the Content-Transfer-Encoding header of the MimePart.
getInputStream in interface DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionpublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourcepublic MessageContext getMessageContext()
getMessageContext in interface MessageAware© Copyright 2003, 2004 The Free Software Foundation, All rights reserved