|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.mail Interface MultipartDataSource
- 所有父接口:
- DataSource
public interface MultipartDataSource
- extends DataSource
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.
- 版本:
- 1.8, 07/05/04
- 作者:
- John Mani
- 另请参见:
DataSource
方法摘要 | |
---|---|
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 |
方法详细信息 |
---|
getCount
int getCount()
- Return the number of enclosed BodyPart objects.
- 返回:
- number of parts
getBodyPart
BodyPart getBodyPart(int index) throws MessagingException
- Get the specified Part. Parts are numbered starting at 0.
- 参数:
index
- the index of the desired Part- 返回:
- the Part
- 抛出异常:
IndexOutOfBoundsException
- if the given index is out of range.MessagingException
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.