org.fusesource.hawtbuf
Class UTF8Buffer

java.lang.Object
  extended by org.fusesource.hawtbuf.Buffer
      extended by org.fusesource.hawtbuf.UTF8Buffer
All Implemented Interfaces:
Comparable<Buffer>

public final class UTF8Buffer
extends Buffer

Author:
Hiram Chirino

Field Summary
 
Fields inherited from class org.fusesource.hawtbuf.Buffer
data, length, offset
 
Constructor Summary
UTF8Buffer(Buffer other)
           
UTF8Buffer(byte[] data)
           
UTF8Buffer(byte[] data, int offset, int length)
           
UTF8Buffer(String input)
           
 
Method Summary
 int compareTo(Buffer other)
           
static String decode(Buffer buffer)
           
static byte[] encode(String value)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
static UTF8Buffer utf8(Buffer buffer)
           
static UTF8Buffer utf8(String value)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UTF8Buffer

public UTF8Buffer(Buffer other)

UTF8Buffer

public UTF8Buffer(byte[] data,
                  int offset,
                  int length)

UTF8Buffer

public UTF8Buffer(byte[] data)

UTF8Buffer

public UTF8Buffer(String input)
Method Detail

toString

public String toString()
Overrides:
toString in class Buffer

compareTo

public int compareTo(Buffer other)
Specified by:
compareTo in interface Comparable<Buffer>
Overrides:
compareTo in class Buffer

equals

public boolean equals(Object obj)
Overrides:
equals in class Buffer

hashCode

public int hashCode()
Overrides:
hashCode in class Buffer

utf8

public static UTF8Buffer utf8(String value)

utf8

public static UTF8Buffer utf8(Buffer buffer)

encode

public static byte[] encode(String value)

decode

public static String decode(Buffer buffer)


Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.