org.apache.axis2.attachments
Class PartOnFile

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

public class PartOnFile
extends Object
implements Part


Constructor Summary
PartOnFile(PushbackFilePartInputStream inStream, String repoDir)
           
 
Method Summary
 Enumeration getAllHeaders()
           
 Object getContent()
           
 String getContentID()
           
 String getContentType()
           
 javax.activation.DataHandler getDataHandler()
           
 String getDescription()
           
 String getFileName()
           
 String getHeader(String arg0)
           
 InputStream getInputStream()
           
 int getLineCount()
           
 int getSize()
           
 void setDescription(String arg0)
           
 void writeTo(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,
                  String repoDir)
Method Detail

getContentID

public String getContentID()
Specified by:
getContentID in interface Part

getSize

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

getLineCount

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

getDescription

public String getDescription()
                      throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

setDescription

public void setDescription(String arg0)
                    throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getFileName

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

getInputStream

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

getDataHandler

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

getContent

public Object getContent()
                  throws IOException,
                         javax.mail.MessagingException
Throws:
IOException
javax.mail.MessagingException

writeTo

public void writeTo(OutputStream outStream)
             throws IOException,
                    javax.mail.MessagingException
Throws:
IOException
javax.mail.MessagingException

getHeader

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

getAllHeaders

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

getContentType

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