Package org.fusesource.hawtbuf
Class UTF8Buffer
- java.lang.Object
-
- org.fusesource.hawtbuf.Buffer
-
- org.fusesource.hawtbuf.UTF8Buffer
-
-
Constructor Summary
Constructors Constructor Description UTF8Buffer(byte[] data)
UTF8Buffer(byte[] data, int offset, int length)
UTF8Buffer(java.lang.String input)
UTF8Buffer(Buffer other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Buffer other)
static java.lang.String
decode(Buffer buffer)
static byte[]
encode(java.lang.String value)
boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
static UTF8Buffer
utf8(java.lang.String value)
static UTF8Buffer
utf8(Buffer buffer)
-
Methods inherited from class org.fusesource.hawtbuf.Buffer
ascii, ascii, ascii, bigEndianEditor, buffer, clear, compact, contains, containsAt, data, deepCopy, equals, flip, get, getData, getLength, getOffset, hex, in, indexOf, indexOf, indexOf, indexOf, isEmpty, join, length, length, littleEndianEditor, moveHead, moveTail, offset, out, readFrom, readFrom, reset, slice, split, startsWith, string, toByteArray, toByteBuffer, trim, trimEnd, trimFront, utf8, writeTo, writeTo
-
-
-
-
Constructor Detail
-
UTF8Buffer
public UTF8Buffer(Buffer other)
-
UTF8Buffer
public UTF8Buffer(byte[] data, int offset, int length)
-
UTF8Buffer
public UTF8Buffer(byte[] data)
-
UTF8Buffer
public UTF8Buffer(java.lang.String input)
-
-
Method Detail
-
compareTo
public int compareTo(Buffer other)
-
utf8
public static UTF8Buffer utf8(java.lang.String value)
-
utf8
public static UTF8Buffer utf8(Buffer buffer)
-
encode
public static byte[] encode(java.lang.String value)
-
decode
public static java.lang.String decode(Buffer buffer)
-
-