Class Utf8CharBuffer


  • public class Utf8CharBuffer
    extends Utf8Appendable
    A CharBuffer wrapped with the Utf8Appendable logic.
    • Method Detail

      • wrap

        public static Utf8CharBuffer wrap​(java.nio.ByteBuffer buffer)
        Convenience method to wrap a ByteBuffer with a Utf8CharBuffer
        Parameters:
        buffer - the buffer to wrap
        Returns:
        the Utf8ByteBuffer for the provided ByteBuffer
      • append

        public void append​(char[] cbuf,
                           int offset,
                           int size)
      • append

        public void append​(int c)
      • clear

        public void clear()
      • getByteBuffer

        public java.nio.ByteBuffer getByteBuffer()
      • remaining

        public int remaining()
      • getPartialString

        public java.lang.String getPartialString()
        Specified by:
        getPartialString in class Utf8Appendable
        Returns:
        The UTF8 so far decoded, ignoring partial code points
      • toString

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