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
MessagingException
Enumeration getAllHeaders() throws MessagingException
MessagingException
Object getContent() throws IOException, MessagingException
IOException
MessagingException
String getContentType() throws MessagingException
MessagingException
javax.activation.DataHandler getDataHandler() throws MessagingException
MessagingException
String getDescription() throws MessagingException
MessagingException
String getDisposition() throws MessagingException
MessagingException
String getFileName() throws MessagingException
MessagingException
String[] getHeader(String name) throws MessagingException
MessagingException
InputStream getInputStream() throws IOException, MessagingException
IOException
MessagingException
int getLineCount() throws MessagingException
MessagingException
Enumeration getMatchingHeaders(String[] names) throws MessagingException
MessagingException
Enumeration getNonMatchingHeaders(String[] names) throws MessagingException
MessagingException
int getSize() throws MessagingException
MessagingException
boolean isMimeType(String mimeType) throws MessagingException
MessagingException
void removeHeader(String name) throws MessagingException
MessagingException
void setContent(Multipart content) throws MessagingException
MessagingException
void setContent(Object content, String type) throws MessagingException
MessagingException
void setDataHandler(javax.activation.DataHandler handler) throws MessagingException
MessagingException
void setDescription(String description) throws MessagingException
MessagingException
void setDisposition(String disposition) throws MessagingException
MessagingException
void setFileName(String name) throws MessagingException
MessagingException
void setHeader(String name, String value) throws MessagingException
MessagingException
void setText(String content) throws MessagingException
MessagingException
void writeTo(OutputStream out) throws IOException, MessagingException
IOException
MessagingException
Copyright © 2013. All Rights Reserved.