FileDocCategorySizeDatePackage
IMAPMultipartDataSource.javaAPI DocGlassfish v2 API3021Mon May 14 15:28:44 BST 2007com.sun.mail.imap

IMAPMultipartDataSource

public class IMAPMultipartDataSource extends MimePartDataSource implements MultipartDataSource
This class
version
1.7, 07/05/04
author
John Mani

Fields Summary
private Vector
parts
Constructors Summary
protected IMAPMultipartDataSource(MimePart part, BODYSTRUCTURE[] bs, String sectionId, IMAPMessage msg)

	super(part);

	parts = new Vector(bs.length);
	for (int i = 0; i < bs.length; i++)
	    parts.addElement(
		new IMAPBodyPart(bs[i], 
				 sectionId == null ? 
				   Integer.toString(i+1) : 
				   sectionId + "." + Integer.toString(i+1),
				 msg)
	    );
    
Methods Summary
public javax.mail.BodyPartgetBodyPart(int index)

	return (BodyPart)parts.elementAt(index);
    
public intgetCount()

	return parts.size();