public class TextMailBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
separator |
protected java.lang.StringBuilder |
text |
Constructor and Description |
---|
TextMailBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addReference(java.lang.String msg_id)
A a message-id referenced by this email
|
int |
addText(java.lang.String s)
add text to the message applying any quoting and seperators.
|
void |
changeSeparator(java.lang.String new_sep)
change the text of a pending separator (if there is any).
|
java.util.Set<java.lang.String> |
getReferences() |
int |
separate(java.lang.String text)
add a separator to denote a new part of the message.
|
void |
setPrefix(java.lang.String p)
Set a prefix string to be applied at the beginning of every line added with addText
|
java.lang.String |
toString() |
protected java.lang.StringBuilder text
protected java.lang.String separator
public int addText(java.lang.String s)
s
- public void setPrefix(java.lang.String p)
p
- public int separate(java.lang.String text) throws MessagingException
text
- MessagingException
public void changeSeparator(java.lang.String new_sep)
new_sep
- public java.lang.String toString()
toString
in class java.lang.Object
public void addReference(java.lang.String msg_id)
msg_id
- public java.util.Set<java.lang.String> getReferences()