Class Utf8CharBuffer
java.lang.Object
org.eclipse.jetty.util.Utf8Appendable
org.eclipse.jetty.websocket.common.message.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
FieldsFields inherited from class org.eclipse.jetty.util.Utf8Appendable
_appendable, _state, LOG, REPLACEMENT, REPLACEMENT_UTF8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(char[] cbuf, int offset, int size) void
append
(int c) void
clear()
int
length()
int
void
reset()
toString()
static Utf8CharBuffer
wrap
(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
-
Field Details
-
buffer
-
-
Constructor Details
-
Utf8CharBuffer
-
-
Method Details
-
wrap
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:
reset
in classorg.eclipse.jetty.util.Utf8Appendable
-
clear
public void clear() -
getByteBuffer
-
length
public int length()- Specified by:
length
in classorg.eclipse.jetty.util.Utf8Appendable
-
remaining
public int remaining() -
getPartialString
- Specified by:
getPartialString
in classorg.eclipse.jetty.util.Utf8Appendable
-
toString
-