Package org.apache.james.mime4j.dom
Class TextBody
- java.lang.Object
-
- org.apache.james.mime4j.dom.SingleBody
-
- org.apache.james.mime4j.dom.TextBody
-
- All Implemented Interfaces:
Body,Disposable
- Direct Known Subclasses:
BasicBodyFactory.StringBody1,BasicBodyFactory.StringBody2,BasicBodyFactory.StringBody3,StorageTextBody,StringTextBody
public abstract class TextBody extends SingleBody
Encapsulates the contents of atext/*entity body.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextBody()Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.nio.charset.CharsetgetCharset()abstract java.lang.StringgetMimeCharset()Returns the MIME charset of this text body.abstract java.io.ReadergetReader()Gets aReaderwhich may be used to read out the contents of this body.-
Methods inherited from class org.apache.james.mime4j.dom.SingleBody
copy, dispose, getInputStream, getParent, setParent, size, writeTo
-
-
-
-
Method Detail
-
getMimeCharset
public abstract java.lang.String getMimeCharset()
Returns the MIME charset of this text body.- Returns:
- the MIME charset.
-
getCharset
public abstract java.nio.charset.Charset getCharset()
-
getReader
public abstract java.io.Reader getReader() throws java.io.IOExceptionGets aReaderwhich may be used to read out the contents of this body.- Returns:
- the
Reader. - Throws:
java.io.IOException- on I/O errors.
-
-