|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.simpleemail.model.Content
public class Content
Represents textual data, plus an optional character set specification.
By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.
Constructor Summary | |
---|---|
Content()
Default constructor for a new Content object. |
|
Content(String data)
Constructs a new Content object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCharset()
The character set of the content. |
String |
getData()
The textual data of the content. |
int |
hashCode()
|
void |
setCharset(String charset)
The character set of the content. |
void |
setData(String data)
The textual data of the content. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
Content |
withCharset(String charset)
The character set of the content. |
Content |
withData(String data)
The textual data of the content. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Content()
public Content(String data)
data
- The textual data of the content.Method Detail |
---|
public String getData()
public void setData(String data)
data
- The textual data of the content.public Content withData(String data)
Returns a reference to this object so that method calls can be chained together.
data
- The textual data of the content.
public String getCharset()
public void setCharset(String charset)
charset
- The character set of the content.public Content withCharset(String charset)
Returns a reference to this object so that method calls can be chained together.
charset
- The character set of the content.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |