|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.attachments.impl.PartOnFile
public class PartOnFile
PartOnFile stores that attachment in a file. This implementation is used for very large attachments to reduce the in-memory footprint. The PartOnFile 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()
getSize
in interface Part
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 |