org.apache.tools.ant.taskdefs.email
public class Message extends ProjectComponent
Since: Ant 1.5
Constructor Summary | |
---|---|
Message() Creates a new empty message | |
Message(String text)
Creates a new message based on the given string
| |
Message(File file)
Creates a new message using the contents of the given file.
|
Method Summary | |
---|---|
void | addText(String text)
Adds a textual part of the message
|
String | getCharset()
Returns the charset of mail message.
|
String | getMimeType()
Returns the content type
|
boolean | isMimeTypeSpecified()
Returns true if the mimeType has been set.
|
void | print(PrintStream ps)
Prints the message onto an output stream
|
void | setCharset(String charset)
Sets the character set of mail message.
|
void | setMimeType(String mimeType)
Sets the content type for the message
|
void | setSrc(File src)
Sets the source file of the message
|
Parameters: text the message
Parameters: file the source of the message
Parameters: text some text to add
Returns: Charset of mail message.
Since: Ant 1.6
Returns: the mime type
Returns: false if the default value is in use
Parameters: ps The print stream to write to
Throws: IOException if an error occurs
Since: Ant 1.6
Parameters: mimeType a mime type e.g. "text/plain"
Parameters: src the source of the message