public class IMAPMultipartDataSource extends java.lang.Object implements MultipartDataSource
| Modifier and Type | Field and Description |
|---|---|
protected IMAPMultipart |
multipart
The multipart object this data source is associated with.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IMAPMultipartDataSource(IMAPMultipart multipart)
Called by the IMAPMessage.
|
| Modifier and Type | Method and Description |
|---|---|
BodyPart |
getBodyPart(int index)
Returns the secified sub-part of the multipart.
|
java.lang.String |
getContentType()
Returns the content type of the body part that contains the multipart.
|
int |
getCount()
Returns the number of sub-parts of the multipart.
|
java.io.InputStream |
getInputStream()
Returns an input stream from which the content of this multipart can be
read.
|
java.lang.String |
getName()
Returns the content description of the body part that contains the
multipart.
|
java.io.OutputStream |
getOutputStream()
IMAP multiparts are read-only.
|
protected IMAPMultipart multipart
protected IMAPMultipartDataSource(IMAPMultipart multipart)
public java.lang.String getName()
getName in interface javax.activation.DataSourcepublic java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcepublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.activation.DataSourcejava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOExceptionpublic BodyPart getBodyPart(int index) throws MessagingException
getBodyPart in interface MultipartDataSourceindex - the index of the desired body partMessagingExceptionpublic int getCount()
getCount in interface MultipartDataSource© Copyright 2003, 2004 The Free Software Foundation, All rights reserved