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 DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
public MessageContext getMessageContext()
getMessageContext
in interface MessageAware
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved