Example usage for Java javax.mail Part fields, constructors, methods, implement or subclass
The text is from its open source code.
String | ATTACHMENT This part should be presented as an attachment. |
String | INLINE This part should be presented inline. |
Enumeration | getAllHeaders() Return all the headers from this part as an Enumeration of Header objects. |
Class> | getClass() Returns the runtime class of this Object . |
Object | getContent() Return the content as a Java object. |
String | getContentType() Returns the Content-Type of the content of this part. |
DataHandler | getDataHandler() Return a DataHandler for the content within this part. |
String | getDescription() Return a description String for this part. |
String | getDisposition() Return the disposition of this part. |
String | getFileName() Get the filename associated with this part, if possible. |
String[] | getHeader(String header_name) Get all the headers for this header name. |
InputStream | getInputStream() Return an input stream for this part's "content". |
int | getLineCount() Return the number of lines in the content of this part. |
int | getSize() Return the size of the content of this part in bytes. |
boolean | isMimeType(String mimeType) Is this Part of the specified MIME type? |
void | setContent(Object obj, String type) A convenience method for setting this part's content. |
void | setContent(Multipart mp) This method sets the given Multipart object as this message's content. |
void | setDataHandler(DataHandler dh) This method provides the mechanism to set this part's content. |
void | setDisposition(String disposition) Set the disposition of this part. |
void | setFileName(String filename) Set the filename associated with this part, if possible. |
void | setHeader(String header_name, String header_value) Set the value for this header_name. |
String | toString() Returns a string representation of the object. |
void | writeTo(OutputStream os) Output a bytestream for this Part. |