Package org.fusesource.hawtbuf
Class AsciiBuffer
- java.lang.Object
-
- org.fusesource.hawtbuf.Buffer
-
- org.fusesource.hawtbuf.AsciiBuffer
-
-
Constructor Summary
Constructors Constructor Description AsciiBuffer(byte[] data)
AsciiBuffer(byte[] data, int offset, int length)
AsciiBuffer(java.lang.String value)
AsciiBuffer(Buffer other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AsciiBuffer
ascii(java.lang.String value)
static AsciiBuffer
ascii(Buffer buffer)
static java.lang.String
decode(Buffer value)
static byte[]
encode(java.lang.String value)
boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.fusesource.hawtbuf.Buffer
ascii, bigEndianEditor, buffer, clear, compact, compareTo, 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, utf8, utf8, writeTo, writeTo
-
-
-
-
Constructor Detail
-
AsciiBuffer
public AsciiBuffer(Buffer other)
-
AsciiBuffer
public AsciiBuffer(byte[] data, int offset, int length)
-
AsciiBuffer
public AsciiBuffer(byte[] data)
-
AsciiBuffer
public AsciiBuffer(java.lang.String value)
-
-
Method Detail
-
ascii
public static AsciiBuffer ascii(java.lang.String value)
-
ascii
public static AsciiBuffer ascii(Buffer buffer)
-
encode
public static byte[] encode(java.lang.String value)
-
decode
public static java.lang.String decode(Buffer value)
-
-