|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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| 方法摘要 | |
|---|---|
BodyPart |
getBodyPart(int index)
Get the specified Part. |
int |
getCount()
Return the number of enclosed BodyPart objects. |
| 从接口 javax.activation.DataSource 继承的方法 |
|---|
getContentType, getInputStream, getName, getOutputStream |
| 方法详细信息 |
|---|
int getCount()
BodyPart getBodyPart(int index)
throws MessagingException
index - the index of the desired Part
IndexOutOfBoundsException - if the given index
is out of range.
MessagingException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||