org.apache.axiom.attachments
Class PartOnMemory
java.lang.Object
org.apache.axiom.attachments.PartOnMemory
- All Implemented Interfaces:
- Part
- public class PartOnMemory
- extends java.lang.Object
- implements Part
Constructor Summary |
PartOnMemory(java.io.InputStream partInStream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartOnMemory
public PartOnMemory(java.io.InputStream partInStream)
throws javax.mail.MessagingException
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
Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.