javax.mail

Interface MultipartDataSource

All Superinterfaces:
DataSource
Known Implementing Classes:
IMAPMultipartDataSource

public interface MultipartDataSource
extends DataSource

A data source that contains body parts.
Version:
1.4
Author:
Chris Burdess
See Also:
DataSource

Method Summary

BodyPart
getBodyPart(int index)
Returns the specified body part.
int
getCount()
Returns the number of body parts.

Method Details

getBodyPart

public BodyPart getBodyPart(int index)
            throws MessagingException
Returns the specified body part. Body parts are numbered starting at 0.
Parameters:
index - the index of the desired body part

getCount

public int getCount()
Returns the number of body parts.

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved