| Modifier and Type | Field and Description |
|---|---|
| private StringBuffer | |
| private String | |
| private String | |
| private File | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public String | |
| private Reader | |
| public boolean | Returns: false if the default value is in useReturns true if the mimeType has been set. |
| public void | |
| public void | |
| public void | setInputEncoding(String
the name of the charset used encoding)Sets the encoding to expect when reading the message from a file. |
| public void | |
| public void |
| buffer | back to summary |
|---|---|
| private StringBuffer buffer | |
| charset | back to summary |
|---|---|
| private String charset | |
| inputEncoding | back to summary |
|---|---|
| private String inputEncoding | |
| messageSource | back to summary |
|---|---|
| private File messageSource | |
| mimeType | back to summary |
|---|---|
| private String mimeType | |
| specified | back to summary |
|---|---|
| private boolean specified | |
| Message | back to summary |
|---|---|
| public Message() Creates a new empty message | |
| Message | back to summary |
|---|---|
| public Message(String text) Creates a new message based on the given string
| |
| Message | back to summary |
|---|---|
| public Message(File file) Creates a new message using the contents of the given file.
| |
| addText | back to summary |
|---|---|
| public void addText(String text) Adds a textual part of the message
| |
| getCharset | back to summary |
|---|---|
| public String getCharset() Returns the charset of mail message.
| |
| getMimeType | back to summary |
|---|---|
| public String getMimeType() Returns the content type
| |
| getReader | back to summary |
|---|---|
| private Reader getReader(File f) throws IOException | |
| isMimeTypeSpecified | back to summary |
|---|---|
| public boolean isMimeTypeSpecified() Returns true if the mimeType has been set.
| |
| back to summary | |
|---|---|
| public void print(PrintStream ps) throws IOException Prints the message onto an output stream
| |
| setCharset | back to summary |
|---|---|
| public void setCharset(String charset) Sets the character set of mail message. Will be ignored if mimeType contains ....; Charset=... substring.
| |
| setInputEncoding | back to summary |
|---|---|
| public void setInputEncoding(String encoding) Sets the encoding to expect when reading the message from a file. Will be ignored if the message has been specified inline.
| |
| setMimeType | back to summary |
|---|---|
| public void setMimeType(String mimeType) Sets the content type for the message
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(File src) Sets the source file of the message
| |