public interface MultipartDataSource
extends javax.activation.DataSource
DataSource
Modifier and Type | Method and Description |
---|---|
BodyPart |
getBodyPart(int index)
Returns the specified body part.
|
int |
getCount()
Returns the number of body parts.
|
int getCount()
BodyPart getBodyPart(int index) throws MessagingException
index
- the index of the desired body partjava.lang.IndexOutOfBoundsException
- if the given index is out of rangeMessagingException