org.apache.axiom.attachments
Class PartOnMemory

java.lang.Object
  extended byorg.apache.axiom.attachments.PartOnMemory
All Implemented Interfaces:
Part

public class PartOnMemory
extends java.lang.Object
implements Part


Constructor Summary
PartOnMemory(java.io.InputStream partInStream)
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartOnMemory

public PartOnMemory(java.io.InputStream partInStream)
             throws javax.mail.MessagingException
Method Detail

getSize

public int getSize()
            throws javax.mail.MessagingException
Specified by:
getSize in interface Part
Throws:
javax.mail.MessagingException

getContentType

public java.lang.String getContentType()
                                throws javax.mail.MessagingException
Specified by:
getContentType in interface Part
Throws:
javax.mail.MessagingException

getFileName

public java.lang.String getFileName()
                             throws javax.mail.MessagingException
Specified by:
getFileName in interface Part
Throws:
javax.mail.MessagingException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException,
                                          javax.mail.MessagingException
Specified by:
getInputStream in interface Part
Throws:
java.io.IOException
javax.mail.MessagingException

getDataHandler

public javax.activation.DataHandler getDataHandler()
                                            throws javax.mail.MessagingException
Specified by:
getDataHandler in interface Part
Throws:
javax.mail.MessagingException

addHeader

public void addHeader(java.lang.String arg0,
                      java.lang.String arg1)
               throws javax.mail.MessagingException
Specified by:
addHeader in interface Part
Throws:
javax.mail.MessagingException

getHeader

public java.lang.String getHeader(java.lang.String arg0)
                           throws javax.mail.MessagingException
Specified by:
getHeader in interface Part
Throws:
javax.mail.MessagingException

getAllHeaders

public java.util.Enumeration getAllHeaders()
                                    throws javax.mail.MessagingException
Specified by:
getAllHeaders in interface Part
Throws:
javax.mail.MessagingException

getContentID

public java.lang.String getContentID()
                              throws javax.mail.MessagingException
Specified by:
getContentID in interface Part
Throws:
javax.mail.MessagingException