| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MultipartDataSource
MultipartDataSource is a DataSource that contains body
 parts.  This allows "mail aware" DataContentHandlers to
 be implemented more efficiently by being aware of such
 DataSources and using the appropriate methods to access
 BodyParts. 
Note that the data of a MultipartDataSource is also available as an input stream.
This interface will typically be implemented by providers that preparse multipart bodies, for example an IMAP provider.
DataSource| Method Summary | |
|---|---|
|  BodyPart | getBodyPart(int index)Get the specified Part. | 
|  int | getCount()Return the number of enclosed BodyPart objects. | 
| Methods inherited from interface javax.activation.DataSource | 
|---|
| getContentType, getInputStream, getName, getOutputStream | 
| Method Detail | 
|---|
int getCount()
BodyPart getBodyPart(int index)
                     throws MessagingException
index - the index of the desired Part
java.lang.IndexOutOfBoundsException - if the given index
                        is out of range.
MessagingException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41