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.Utf8AppendableA CharBuffer wrapped with the Utf8Appendable logic.
-
-
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()ByteBuffergetByteBuffer()StringgetPartialString()intlength()intremaining()voidreset()StringtoString()static Utf8CharBufferwrap(ByteBuffer buffer)Convenience method to wrap a ByteBuffer with aUtf8CharBuffer
-
-
-
Method Detail
-
wrap
public static Utf8CharBuffer wrap(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 classorg.eclipse.jetty.util.Utf8Appendable
-
clear
public void clear()
-
getByteBuffer
public ByteBuffer getByteBuffer()
-
length
public int length()
- Specified by:
lengthin classorg.eclipse.jetty.util.Utf8Appendable
-
remaining
public int remaining()
-
getPartialString
public String getPartialString()
- Specified by:
getPartialStringin classorg.eclipse.jetty.util.Utf8Appendable
-
-