org.apache.axis2.attachments
Class PartOnMemory

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

public class PartOnMemory
extends java.lang.Object
implements Part


Constructor Summary
PartOnMemory(java.io.InputStream partInStream)
           
 
Method Summary
 java.util.Enumeration getAllHeaders()
           
 java.lang.String getContentID()
           
 java.lang.String getContentType()
           
 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 MessagingException
Method Detail

getSize

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

getContentType

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

getFileName

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

getInputStream

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

getDataHandler

public DataHandler getDataHandler()
                           throws MessagingException
Specified by:
getDataHandler in interface Part
Throws:
MessagingException

getHeader

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

getAllHeaders

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

getContentID

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