org.apache.axiom.attachments
Class PartOnFile

java.lang.Object
  extended byorg.apache.axiom.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
 void addHeader(java.lang.String arg0, java.lang.String arg1)
           
 java.util.Enumeration getAllHeaders()
           
 java.lang.Object getContent()
           
 java.lang.String getContentID()
           
 java.lang.String getContentType()
           
 javax.activation.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 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 java.lang.String getDescription()
                                throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

setDescription

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

getContent

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

writeTo

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

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

getAllHeaders

public java.util.Enumeration getAllHeaders()
                                    throws javax.mail.MessagingException
Specified by:
getAllHeaders 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


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.