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() |
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() |
DataHandler getDataHandler() throws javax.mail.MessagingException
javax.mail.MessagingExceptionlong getSize()
throws javax.mail.MessagingException
javax.mail.MessagingExceptionString getContentType() throws javax.mail.MessagingException
javax.mail.MessagingExceptionString getContentID() throws javax.mail.MessagingException
javax.mail.MessagingExceptionString getFileName() throws javax.mail.MessagingException
javax.mail.MessagingExceptionInputStream getInputStream() throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionvoid addHeader(String name, String value) throws javax.mail.MessagingException
name - value - javax.mail.MessagingExceptionString getHeader(String name) throws javax.mail.MessagingException
name - javax.mail.MessagingExceptionEnumeration getAllHeaders() throws javax.mail.MessagingException
javax.mail.MessagingExceptionCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.