|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.attachments.impl.PartOnMemoryEnhanced
public class PartOnMemoryEnhanced
PartOnMemoryEnhanced stores the attachment in memory (in non-contigous byte arrays) This implementation is used for smaller attachments to enhance performance. The PartOnMemoryEnhanced object is created by the PartFactory
org.apache.axiom.attachments.impl.PartFactory.
Method Summary | |
---|---|
void |
addHeader(java.lang.String name,
java.lang.String value)
Add a Header (name, value) to the part |
java.util.Enumeration |
getAllHeaders()
|
java.lang.String |
getContentID()
|
java.lang.String |
getContentTransferEncoding()
|
java.lang.String |
getContentType()
|
javax.activation.DataHandler |
getDataHandler()
|
java.lang.String |
getFileName()
The part may be backed by a file. |
java.lang.String |
getHeader(java.lang.String name)
Get the value of a specific header |
java.io.InputStream |
getInputStream()
|
long |
getSize()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public javax.activation.DataHandler getDataHandler() throws javax.mail.MessagingException
getDataHandler
in interface Part
javax.mail.MessagingException
public java.lang.String getFileName() throws javax.mail.MessagingException
Part
getFileName
in interface Part
javax.mail.MessagingException
public java.io.InputStream getInputStream() throws java.io.IOException, javax.mail.MessagingException
getInputStream
in interface Part
java.io.IOException
javax.mail.MessagingException
public long getSize() throws javax.mail.MessagingException
getSize
in interface Part
javax.mail.MessagingException
public void addHeader(java.lang.String name, java.lang.String value)
Part
addHeader
in interface Part
public java.util.Enumeration getAllHeaders() throws javax.mail.MessagingException
getAllHeaders
in interface Part
javax.mail.MessagingException
public java.lang.String getHeader(java.lang.String name)
Part
getHeader
in interface Part
public java.lang.String getContentID() throws javax.mail.MessagingException
getContentID
in interface Part
javax.mail.MessagingException
public java.lang.String getContentType() throws javax.mail.MessagingException
getContentType
in interface Part
javax.mail.MessagingException
public java.lang.String getContentTransferEncoding() throws javax.mail.MessagingException
javax.mail.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |