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
Encapsulates the contents of a
text/*
entity body.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.james.mime4j.dom.SingleBody
copy, dispose, getInputStream, getParent, setParent, size, writeTo
-
Constructor Details
-
TextBody
protected TextBody()Sole constructor.
-
-
Method Details
-
getMimeCharset
Returns the MIME charset of this text body.- Returns:
- the MIME charset.
-
getCharset
-
getReader
Gets aReader
which may be used to read out the contents of this body.- Returns:
- the
Reader
. - Throws:
IOException
- on I/O errors.
-