Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.mail.internet
Class MimeMultipart  view MimeMultipart download MimeMultipart.java

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

public class MimeMultipart
extends javax.mail.Multipart

Version:
$Rev: 154541 $ $Date: 2005-02-20 10:01:49 -0800 (Sun, 20 Feb 2005) $

Field Summary
private static byte[] crlf
           
private static byte[] dash
           
protected  javax.activation.DataSource ds
          DataSource that provides our InputStream.
protected  boolean parsed
          Indicates if the data has been parsed.
private static int part
           
private  ContentType type
           
 
Fields inherited from class javax.mail.Multipart
contentType, parent, parts
 
Constructor Summary
MimeMultipart()
          Create an empty MimeMultipart with content type "multipart/mixed"
MimeMultipart(javax.activation.DataSource dataSource)
          Create a MimeMultipart from the supplied DataSource.
MimeMultipart(java.lang.String subtype)
          Create an empty MimeMultipart with the subtype supplied.
 
Method Summary
protected  InternetHeaders createInternetHeaders(java.io.InputStream in)
           
protected  MimeBodyPart createMimeBodyPart(java.io.InputStream in)
           
protected  MimeBodyPart createMimeBodyPart(InternetHeaders headers, byte[] data)
           
 javax.mail.BodyPart getBodyPart(int part)
          Get the specified part; numbering starts at zero.
 javax.mail.BodyPart getBodyPart(java.lang.String cid)
           
private static java.lang.String getBoundary()
           
 int getCount()
          Return the number of enclosed parts
protected  void parse()
           
 void setSubType(java.lang.String subtype)
           
protected  void updateHeaders()
           
 void writeTo(java.io.OutputStream out)
          Encode and write this multipart to the supplied OutputStream; the encoding used is determined by the implementation.
 
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
DataSource that provides our InputStream.


parsed

protected boolean parsed
Indicates if the data has been parsed.


type

private transient ContentType type

dash

private static byte[] dash

crlf

private static byte[] crlf

part

private static int part
Constructor Detail

MimeMultipart

public MimeMultipart()
Create an empty MimeMultipart with content type "multipart/mixed"


MimeMultipart

public MimeMultipart(java.lang.String subtype)
Create an empty MimeMultipart with the subtype supplied.


MimeMultipart

public MimeMultipart(javax.activation.DataSource dataSource)
              throws javax.mail.MessagingException
Create a MimeMultipart from the supplied DataSource.

Method Detail

setSubType

public void setSubType(java.lang.String subtype)
                throws javax.mail.MessagingException

getCount

public int getCount()
             throws javax.mail.MessagingException
Description copied from class: javax.mail.Multipart
Return the number of enclosed parts


getBodyPart

public javax.mail.BodyPart getBodyPart(int part)
                                throws javax.mail.MessagingException
Description copied from class: javax.mail.Multipart
Get the specified part; numbering starts at zero.


getBodyPart

public javax.mail.BodyPart getBodyPart(java.lang.String cid)
                                throws javax.mail.MessagingException

updateHeaders

protected void updateHeaders()
                      throws javax.mail.MessagingException

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException,
                    javax.mail.MessagingException
Description copied from class: javax.mail.Multipart
Encode and write this multipart to the supplied OutputStream; the encoding used is determined by the implementation.


parse

protected void parse()
              throws javax.mail.MessagingException

createInternetHeaders

protected InternetHeaders createInternetHeaders(java.io.InputStream in)
                                         throws javax.mail.MessagingException

createMimeBodyPart

protected MimeBodyPart createMimeBodyPart(InternetHeaders headers,
                                          byte[] data)
                                   throws javax.mail.MessagingException

createMimeBodyPart

protected MimeBodyPart createMimeBodyPart(java.io.InputStream in)
                                   throws javax.mail.MessagingException

getBoundary

private static java.lang.String getBoundary()