public interface Part
PartFactory
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value)
Add a Header (name, value) to the part
|
Enumeration |
getAllHeaders() |
String |
getContentID() |
String |
getContentType() |
javax.activation.DataHandler |
getDataHandler() |
String |
getFileName()
Deprecated.
The callers should not no how the part
is implemented.
|
String |
getHeader(String name)
Get the value of a specific header
|
InputStream |
getInputStream() |
long |
getSize() |
javax.activation.DataHandler getDataHandler() throws javax.mail.MessagingException
javax.mail.MessagingException
long getSize() throws javax.mail.MessagingException
javax.mail.MessagingException
String getContentType() throws javax.mail.MessagingException
javax.mail.MessagingException
String getContentID() throws javax.mail.MessagingException
javax.mail.MessagingException
String getFileName() throws javax.mail.MessagingException
javax.mail.MessagingException
InputStream getInputStream() throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
void addHeader(String name, String value) throws javax.mail.MessagingException
name
- value
- javax.mail.MessagingException
String getHeader(String name) throws javax.mail.MessagingException
name
- javax.mail.MessagingException
Enumeration getAllHeaders() throws javax.mail.MessagingException
javax.mail.MessagingException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.