| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.email.Message
public class Message
Class representing an email message.
| Field Summary | 
|---|
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
|---|
| description, location, project | 
| Constructor Summary | |
|---|---|
| Message()Creates a new empty message | |
| Message(java.io.File file)Creates a new message using the contents of the given file. | |
| Message(java.lang.String text)Creates a new message based on the given string | |
| Method Summary | |
|---|---|
|  void | addText(java.lang.String text)Adds a textual part of the message | 
|  java.lang.String | getCharset()Returns the charset of mail message. | 
|  java.lang.String | getMimeType()Returns the content type | 
|  boolean | isMimeTypeSpecified()Returns true if the mimeType has been set. | 
|  void | print(java.io.PrintStream ps)Prints the message onto an output stream | 
|  void | setCharset(java.lang.String charset)Sets the character set of mail message. | 
|  void | setInputEncoding(java.lang.String encoding)Sets the encoding to expect when reading the message from a file. | 
|  void | setMimeType(java.lang.String mimeType)Sets the content type for the message | 
|  void | setSrc(java.io.File src)Sets the source file of the message | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
|---|
| clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Message()
public Message(java.lang.String text)
text - the messagepublic Message(java.io.File file)
file - the source of the message| Method Detail | 
|---|
public void addText(java.lang.String text)
text - some text to addpublic void setSrc(java.io.File src)
src - the source of the messagepublic void setMimeType(java.lang.String mimeType)
mimeType - a mime type e.g. "text/plain"public java.lang.String getMimeType()
public void print(java.io.PrintStream ps)
           throws java.io.IOException
ps - The print stream to write to
java.io.IOException - if an error occurspublic boolean isMimeTypeSpecified()
public void setCharset(java.lang.String charset)
charset - the character set name.public java.lang.String getCharset()
public void setInputEncoding(java.lang.String encoding)
Will be ignored if the message has been specified inline.
encoding - the name of the charset used| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||