org.apache.kahadb.util
Class ByteSequence

java.lang.Object
  extended by org.apache.kahadb.util.ByteSequence

public class ByteSequence
extends java.lang.Object


Field Summary
 byte[] data
           
 int length
           
 int offset
           
 
Constructor Summary
ByteSequence()
           
ByteSequence(byte[] data)
           
ByteSequence(byte[] data, int offset, int length)
           
 
Method Summary
 void compact()
           
 byte[] getData()
           
 int getLength()
           
 int getOffset()
           
 int indexOf(byte value, int pos)
           
 int indexOf(ByteSequence needle, int pos)
           
 void setData(byte[] data)
           
 void setLength(int length)
           
 void setOffset(int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public byte[] data

offset

public int offset

length

public int length
Constructor Detail

ByteSequence

public ByteSequence()

ByteSequence

public ByteSequence(byte[] data)

ByteSequence

public ByteSequence(byte[] data,
                    int offset,
                    int length)
Method Detail

getData

public byte[] getData()

getLength

public int getLength()

getOffset

public int getOffset()

setData

public void setData(byte[] data)

setLength

public void setLength(int length)

setOffset

public void setOffset(int offset)

compact

public void compact()

indexOf

public int indexOf(ByteSequence needle,
                   int pos)

indexOf

public final int indexOf(byte value,
                         int pos)


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.