org.apache.axiom.attachments
Interface Part

All Known Implementing Classes:
PartOnFile, PartOnMemory

public interface Part


Method Summary
 void addHeader(java.lang.String arg0, java.lang.String arg1)
           
 java.util.Enumeration getAllHeaders()
           
 java.lang.String getContentID()
           
 java.lang.String getContentType()
           
 javax.activation.DataHandler getDataHandler()
           
 java.lang.String getFileName()
           
 java.lang.String getHeader(java.lang.String arg0)
           
 java.io.InputStream getInputStream()
           
 int getSize()
           
 

Method Detail

getSize

public int getSize()
            throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getContentType

public java.lang.String getContentType()
                                throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getContentID

public java.lang.String getContentID()
                              throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getFileName

public java.lang.String getFileName()
                             throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException,
                                          javax.mail.MessagingException
Throws:
java.io.IOException
javax.mail.MessagingException

getDataHandler

public javax.activation.DataHandler getDataHandler()
                                            throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

addHeader

public void addHeader(java.lang.String arg0,
                      java.lang.String arg1)
               throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getHeader

public java.lang.String getHeader(java.lang.String arg0)
                           throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getAllHeaders

public java.util.Enumeration getAllHeaders()
                                    throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException