javax.mail.internet
Class MimeMultipart

java.lang.Object
  extended byjavax.mail.Multipart
      extended byjavax.mail.internet.MimeMultipart

public class MimeMultipart
extends Multipart

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

Field Summary
protected  javax.activation.DataSource ds
           
protected  boolean parsed
           
 
Fields inherited from class javax.mail.Multipart
contentType, parent, parts
 
Constructor Summary
MimeMultipart()
           
MimeMultipart(javax.activation.DataSource dataSource)
           
MimeMultipart(String subtype)
           
 
Method Summary
protected  InternetHeaders createInternetHeaders(InputStream in)
           
protected  MimeBodyPart createMimeBodyPart(InputStream in)
           
protected  MimeBodyPart createMimeBodyPart(InternetHeaders headers, byte[] data)
           
 BodyPart getBodyPart(int part)
           
 BodyPart getBodyPart(String cid)
           
 int getCount()
           
protected  void parse()
           
 void setSubType(String subtype)
           
protected  void updateHeaders()
           
 void writeTo(OutputStream out)
           
 
Methods inherited from class javax.mail.Multipart
addBodyPart, addBodyPart, getContentType, getParent, removeBodyPart, removeBodyPart, setMultipartDataSource, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ds

protected javax.activation.DataSource ds

parsed

protected boolean parsed
Constructor Detail

MimeMultipart

public MimeMultipart()

MimeMultipart

public MimeMultipart(javax.activation.DataSource dataSource)
              throws MessagingException

MimeMultipart

public MimeMultipart(String subtype)
Method Detail

createInternetHeaders

protected InternetHeaders createInternetHeaders(InputStream in)
                                         throws MessagingException
Throws:
MessagingException

createMimeBodyPart

protected MimeBodyPart createMimeBodyPart(InputStream in)
                                   throws MessagingException
Throws:
MessagingException

createMimeBodyPart

protected MimeBodyPart createMimeBodyPart(InternetHeaders headers,
                                          byte[] data)
                                   throws MessagingException
Throws:
MessagingException

getBodyPart

public BodyPart getBodyPart(int part)
                     throws MessagingException
Overrides:
getBodyPart in class Multipart
Throws:
MessagingException

getBodyPart

public BodyPart getBodyPart(String cid)
                     throws MessagingException
Throws:
MessagingException

getCount

public int getCount()
             throws MessagingException
Overrides:
getCount in class Multipart
Throws:
MessagingException

parse

protected void parse()
              throws MessagingException
Throws:
MessagingException

setSubType

public void setSubType(String subtype)
                throws MessagingException
Throws:
MessagingException

updateHeaders

protected void updateHeaders()
                      throws MessagingException
Throws:
MessagingException

writeTo

public void writeTo(OutputStream out)
             throws IOException,
                    MessagingException
Specified by:
writeTo in class Multipart
Throws:
IOException
MessagingException


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