public interface Part
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTACHMENT |
static String |
INLINE |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value) |
Enumeration |
getAllHeaders() |
Object |
getContent() |
String |
getContentType() |
javax.activation.DataHandler |
getDataHandler() |
String |
getDescription() |
String |
getDisposition() |
String |
getFileName() |
String[] |
getHeader(String name) |
InputStream |
getInputStream() |
int |
getLineCount() |
Enumeration |
getMatchingHeaders(String[] names) |
Enumeration |
getNonMatchingHeaders(String[] names) |
int |
getSize() |
boolean |
isMimeType(String mimeType) |
void |
removeHeader(String name) |
void |
setContent(Multipart content) |
void |
setContent(Object content,
String type) |
void |
setDataHandler(javax.activation.DataHandler handler) |
void |
setDescription(String description) |
void |
setDisposition(String disposition) |
void |
setFileName(String name) |
void |
setHeader(String name,
String value) |
void |
setText(String content) |
void |
writeTo(OutputStream out) |
static final String ATTACHMENT
static final String INLINE
void addHeader(String name, String value) throws MessagingException
MessagingExceptionEnumeration getAllHeaders() throws MessagingException
MessagingExceptionObject getContent() throws IOException, MessagingException
IOExceptionMessagingExceptionString getContentType() throws MessagingException
MessagingExceptionjavax.activation.DataHandler getDataHandler()
throws MessagingException
MessagingExceptionString getDescription() throws MessagingException
MessagingExceptionString getDisposition() throws MessagingException
MessagingExceptionString getFileName() throws MessagingException
MessagingExceptionString[] getHeader(String name) throws MessagingException
MessagingExceptionInputStream getInputStream() throws IOException, MessagingException
IOExceptionMessagingExceptionint getLineCount()
throws MessagingException
MessagingExceptionEnumeration getMatchingHeaders(String[] names) throws MessagingException
MessagingExceptionEnumeration getNonMatchingHeaders(String[] names) throws MessagingException
MessagingExceptionint getSize()
throws MessagingException
MessagingExceptionboolean isMimeType(String mimeType) throws MessagingException
MessagingExceptionvoid removeHeader(String name) throws MessagingException
MessagingExceptionvoid setContent(Multipart content) throws MessagingException
MessagingExceptionvoid setContent(Object content, String type) throws MessagingException
MessagingExceptionvoid setDataHandler(javax.activation.DataHandler handler)
throws MessagingException
MessagingExceptionvoid setDescription(String description) throws MessagingException
MessagingExceptionvoid setDisposition(String disposition) throws MessagingException
MessagingExceptionvoid setFileName(String name) throws MessagingException
MessagingExceptionvoid setHeader(String name, String value) throws MessagingException
MessagingExceptionvoid setText(String content) throws MessagingException
MessagingExceptionvoid writeTo(OutputStream out) throws IOException, MessagingException
IOExceptionMessagingExceptionCopyright © 2013. All Rights Reserved.