javax.mail
Class Multipart

java.lang.Object
  extended byjavax.mail.Multipart
Direct Known Subclasses:
MimeMultipart

public abstract class Multipart
extends Object

Version:
$Revision: 1.3 $ $Date: 2004/03/10 10:00:27 $

Field Summary
protected  String contentType
           
protected  Part parent
           
protected  Vector parts
           
 
Constructor Summary
protected Multipart()
           
 
Method Summary
 void addBodyPart(BodyPart part)
           
 void addBodyPart(BodyPart part, int pos)
           
 BodyPart getBodyPart(int index)
           
 String getContentType()
           
 int getCount()
           
 Part getParent()
           
 boolean removeBodyPart(BodyPart part)
           
 void removeBodyPart(int index)
           
protected  void setMultipartDataSource(MultipartDataSource mds)
           
 void setParent(Part part)
           
abstract  void writeTo(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentType

protected String contentType

parent

protected Part parent

parts

protected Vector parts
Constructor Detail

Multipart

protected Multipart()
Method Detail

addBodyPart

public void addBodyPart(BodyPart part)
                 throws MessagingException
Throws:
MessagingException

addBodyPart

public void addBodyPart(BodyPart part,
                        int pos)
                 throws MessagingException
Throws:
MessagingException

getBodyPart

public BodyPart getBodyPart(int index)
                     throws MessagingException
Throws:
MessagingException

getContentType

public String getContentType()

getCount

public int getCount()
             throws MessagingException
Throws:
MessagingException

getParent

public Part getParent()

removeBodyPart

public boolean removeBodyPart(BodyPart part)
                       throws MessagingException
Throws:
MessagingException

removeBodyPart

public void removeBodyPart(int index)
                    throws MessagingException
Throws:
MessagingException

setMultipartDataSource

protected void setMultipartDataSource(MultipartDataSource mds)
                               throws MessagingException
Throws:
MessagingException

setParent

public void setParent(Part part)

writeTo

public abstract void writeTo(OutputStream out)
                      throws IOException,
                             MessagingException
Throws:
IOException
MessagingException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.