org.fusesource.hawtbuf
Class AsciiBuffer

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

public final class AsciiBuffer
extends Buffer

Author:
Hiram Chirino

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

Constructor Detail

AsciiBuffer

public AsciiBuffer(Buffer other)

AsciiBuffer

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

AsciiBuffer

public AsciiBuffer(byte[] data)

AsciiBuffer

public AsciiBuffer(String value)
Method Detail

toString

public String toString()
Overrides:
toString in class Buffer

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Buffer

ascii

public static AsciiBuffer ascii(String value)

ascii

public static AsciiBuffer ascii(Buffer buffer)

encode

public static byte[] encode(String value)

decode

public static String decode(Buffer value)


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