Class Utf8CharBuffer
- java.lang.Object
-
- org.eclipse.jetty.util.Utf8Appendable
-
- org.eclipse.jetty.websocket.common.message.Utf8CharBuffer
-
public class Utf8CharBuffer extends Utf8Appendable
A CharBuffer wrapped with the Utf8Appendable logic.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.Utf8Appendable
Utf8Appendable.NotUtf8Exception
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.util.Utf8Appendable
_appendable, _state, LOG, REPLACEMENT, REPLACEMENT_UTF8
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(char[] cbuf, int offset, int size)voidappend(int c)voidclear()java.nio.ByteBuffergetByteBuffer()java.lang.StringgetPartialString()intlength()intremaining()voidreset()java.lang.StringtoString()static Utf8CharBufferwrap(java.nio.ByteBuffer buffer)Convenience method to wrap a ByteBuffer with aUtf8CharBuffer-
Methods inherited from class org.eclipse.jetty.util.Utf8Appendable
append, append, append, append, append, append, append, append, appendByte, checkState, isUtf8SequenceComplete, takePartialString, toReplacedString
-
-
-
-
Method Detail
-
wrap
public static Utf8CharBuffer wrap(java.nio.ByteBuffer buffer)
Convenience method to wrap a ByteBuffer with aUtf8CharBuffer- 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:
resetin classUtf8Appendable
-
clear
public void clear()
-
getByteBuffer
public java.nio.ByteBuffer getByteBuffer()
-
length
public int length()
- Specified by:
lengthin classUtf8Appendable
-
remaining
public int remaining()
-
getPartialString
public java.lang.String getPartialString()
- Specified by:
getPartialStringin classUtf8Appendable- Returns:
- The UTF8 so far decoded, ignoring partial code points
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-