Class Utf8CharBuffer


  • public class Utf8CharBuffer
    extends org.eclipse.jetty.util.Utf8Appendable
    A CharBuffer wrapped with the Utf8Appendable logic.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.Utf8Appendable

        org.eclipse.jetty.util.Utf8Appendable.NotUtf8Exception
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.CharBuffer buffer  
      • Fields inherited from class org.eclipse.jetty.util.Utf8Appendable

        _appendable, _state, LOG, REPLACEMENT, REPLACEMENT_UTF8
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Utf8CharBuffer​(java.nio.CharBuffer buffer)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void append​(char[] cbuf, int offset, int size)  
      void append​(int c)  
      void clear()  
      java.nio.ByteBuffer getByteBuffer()  
      java.lang.String getPartialString()  
      int length()  
      int remaining()  
      void reset()  
      java.lang.String toString()  
      static Utf8CharBuffer wrap​(java.nio.ByteBuffer buffer)
      Convenience method to wrap a ByteBuffer with a Utf8CharBuffer
      • Methods inherited from class org.eclipse.jetty.util.Utf8Appendable

        append, append, append, append, append, append, append, append, appendByte, checkState, isUtf8SequenceComplete, takePartialString, toReplacedString
      • Methods inherited from class java.lang.Object

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

      • buffer

        private final java.nio.CharBuffer buffer
    • Constructor Detail

      • Utf8CharBuffer

        private Utf8CharBuffer​(java.nio.CharBuffer buffer)
    • 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)
      • reset

        public void reset()
        Overrides:
        reset in class org.eclipse.jetty.util.Utf8Appendable
      • clear

        public void clear()
      • getByteBuffer

        public java.nio.ByteBuffer getByteBuffer()
      • length

        public int length()
        Specified by:
        length in class org.eclipse.jetty.util.Utf8Appendable
      • remaining

        public int remaining()
      • getPartialString

        public java.lang.String getPartialString()
        Specified by:
        getPartialString in class org.eclipse.jetty.util.Utf8Appendable
      • toString

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