public class BlockAwareBinWindow
extends java.lang.Object
| Constructor and Description |
|---|
BlockAwareBinWindow(BlockAwareBin io,
int blockOff,
int len) |
public BlockAwareBinWindow(BlockAwareBin io, int blockOff, int len)
io - The delegate I/O adapterblockOff - The block offset address into the I/O adapter that maps to the start index (0) of this windowlen - The size of this window in bytespublic int length()
public void write(int off,
byte[] data)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
off - Offset in bytes relative to the window startdata - Data to write into the window starting from the given offsetjava.lang.IllegalArgumentExceptionjava.lang.IllegalStateExceptionpublic int read(int off,
byte[] data)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
off - Offset in bytes relative to the window startdata - Data buffer to read from the window starting from the given offsetjava.lang.IllegalArgumentExceptionjava.lang.IllegalStateExceptionpublic void disable()
public void flush()