|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.mail.Body
This class represents a text body. The body contains String text and a content type. The content type can be used to determine how to display the String text. For example, the content type might be an HTML MIME type and therefore, the body should be displayed as HTML.
Constructor Summary | |
Body()
Constructor. |
|
Body(java.lang.String sBody)
Constructor. |
|
Body(java.lang.String sContentType,
java.lang.String sBody)
Constructor. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
java.lang.String |
getContentType()
Returns the MIME type of the body. |
java.lang.String |
getText()
Gets the plain-text representation of the body. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Body()
sBody
- the plain-text bodypublic Body(java.lang.String sBody)
sBody
- the plain-text bodypublic Body(java.lang.String sContentType, java.lang.String sBody)
sContentType
- the body MIME type (must be valid MIME type)sBody
- the plain-text bodyMethod Detail |
public java.lang.String getContentType()
public java.lang.String getText()
getContentType()
to determine display.null
for no bodypublic int compareTo(java.lang.Object o)
o
- the object to be comparedClassCastException
- if the specified object's type prevents it from being compared to this Objectpublic java.lang.String toString()
toString
in class java.lang.Object
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |