xxl.io
Class Block

java.lang.Object
  |
  +--xxl.io.Block

public class Block
extends java.lang.Object


Field Summary
 byte[] array
           
 int offset
           
protected  boolean released
           
 int size
           
 
Constructor Summary
Block(byte[] array, int offset, int size)
           
 
Method Summary
 byte get(int index)
           
 void release()
           
 byte set(int index, byte b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

public final byte[] array

offset

public final int offset

size

public final int size

released

protected boolean released
Constructor Detail

Block

public Block(byte[] array,
             int offset,
             int size)
Method Detail

release

public void release()
             throws java.lang.IllegalStateException

set

public byte set(int index,
                byte b)
         throws java.lang.IllegalStateException,
                java.lang.IndexOutOfBoundsException

get

public byte get(int index)
         throws java.lang.IllegalStateException,
                java.lang.IndexOutOfBoundsException