|
||||||||||
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
PartFactory
Method Summary | |
---|---|
void |
addHeader(String name,
String value)
Add a Header (name, value) to the part |
Enumeration |
getAllHeaders()
|
String |
getContentID()
|
String |
getContentTransferEncoding()
|
String |
getContentType()
|
DataHandler |
getDataHandler()
|
String |
getFileName()
The part may be backed by a file. |
String |
getHeader(String name)
Get the value of a specific header |
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 DataHandler getDataHandler() throws MessagingException
getDataHandler
in interface Part
MessagingException
public String getFileName() throws MessagingException
Part
getFileName
in interface Part
MessagingException
public InputStream getInputStream() throws IOException, MessagingException
getInputStream
in interface Part
IOException
MessagingException
public long getSize() throws MessagingException
getSize
in interface Part
MessagingException
public void addHeader(String name, String value)
Part
addHeader
in interface Part
public Enumeration getAllHeaders() throws MessagingException
getAllHeaders
in interface Part
MessagingException
public String getHeader(String name)
Part
getHeader
in interface Part
public String getContentID() throws MessagingException
getContentID
in interface Part
MessagingException
public String getContentType() throws MessagingException
getContentType
in interface Part
MessagingException
public String getContentTransferEncoding() throws MessagingException
MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |