Class TextBody

  • All Implemented Interfaces:
    Body, Disposable

    public abstract class TextBody
    extends SingleBody
    Encapsulates the contents of a text/* entity body.
    • 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.