javax.mail

Interface MultipartDataSource

public interface MultipartDataSource extends DataSource

A data source that contains body parts.

Version: 1.4

Author: Chris Burdess

See Also: DataSource

Method Summary
BodyPartgetBodyPart(int index)
Returns the specified body part.
intgetCount()
Returns the number of body parts.

Method Detail

getBodyPart

public BodyPart getBodyPart(int index)
Returns the specified body part. Body parts are numbered starting at 0.

Parameters: index the index of the desired body part

Throws: IndexOutOfBoundsException if the given index is out of range

getCount

public int getCount()
Returns the number of body parts.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved