org.apache.axis2.attachments
Class PartOnFile

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

public class PartOnFile
extends java.lang.Object
implements Part


Constructor Summary
PartOnFile(PushbackFilePartInputStream inStream, java.lang.String repoDir)
           
 
Method Summary
 java.util.Enumeration getAllHeaders()
           
 java.lang.Object getContent()
           
 java.lang.String getContentID()
           
 java.lang.String getContentType()
           
 DataHandler getDataHandler()
           
 java.lang.String getDescription()
           
 java.lang.String getFileName()
           
 java.lang.String getHeader(java.lang.String arg0)
           
 java.io.InputStream getInputStream()
           
 int getLineCount()
           
 int getSize()
           
 void setDescription(java.lang.String arg0)
           
 void writeTo(java.io.OutputStream outStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartOnFile

public PartOnFile(PushbackFilePartInputStream inStream,
                  java.lang.String repoDir)
Method Detail

getContentID

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

getSize

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

getLineCount

public int getLineCount()
                 throws MessagingException
Throws:
MessagingException

getDescription

public java.lang.String getDescription()
                                throws MessagingException
Throws:
MessagingException

setDescription

public void setDescription(java.lang.String arg0)
                    throws MessagingException
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

getContent

public java.lang.Object getContent()
                            throws java.io.IOException,
                                   MessagingException
Throws:
java.io.IOException
MessagingException

writeTo

public void writeTo(java.io.OutputStream outStream)
             throws java.io.IOException,
                    MessagingException
Throws:
java.io.IOException
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

getContentType

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