Apache JAMES Mime4j 0.6-redhat-2

org.apache.james.mime4j.message
Class TextBody

java.lang.Object
  extended by org.apache.james.mime4j.message.SingleBody
      extended by org.apache.james.mime4j.message.TextBody
All Implemented Interfaces:
Body, Disposable

public abstract class TextBody
extends SingleBody

Encapsulates the contents of a text/* entity body.


Constructor Summary
protected TextBody()
          Sole constructor.
 
Method Summary
abstract  String getMimeCharset()
          Returns the MIME charset of this text body.
abstract  Reader getReader()
          Gets a Reader which may be used to read out the contents of this body.
 
Methods inherited from class org.apache.james.mime4j.message.SingleBody
copy, dispose, getParent, setParent, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextBody

protected TextBody()
Sole constructor.

Method Detail

getMimeCharset

public abstract String getMimeCharset()
Returns the MIME charset of this text body.

Returns:
the MIME charset.

getReader

public abstract Reader getReader()
                          throws IOException
Gets a Reader which may be used to read out the contents of this body.

Returns:
the Reader.
Throws:
IOException - on I/O errors.

Apache JAMES Mime4j 0.6-redhat-2

Copyright © 2004-2012 JBoss by Red Hat. All Rights Reserved.