Class CharBufferWrapper


  • public class CharBufferWrapper
    extends java.lang.Object
    Wraps a CharBuffer and exposes some convenience methods to easy parse with Mime4j.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.CharBuffer messageBuffer  
    • Constructor Summary

      Constructors 
      Constructor Description
      CharBufferWrapper​(java.nio.CharBuffer messageBuffer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char[] asCharArray()  
      java.io.InputStream asInputStream​(java.nio.charset.Charset encoding)  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • messageBuffer

        private final java.nio.CharBuffer messageBuffer
    • Constructor Detail

      • CharBufferWrapper

        public CharBufferWrapper​(java.nio.CharBuffer messageBuffer)
    • Method Detail

      • asInputStream

        public java.io.InputStream asInputStream​(java.nio.charset.Charset encoding)
      • asCharArray

        public char[] asCharArray()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object