rossi.fstools.io
Interface BlockReader

All Known Implementing Classes:
BlockIO

public interface BlockReader


Method Summary
 void close()
          Closes this block reader
 byte[] getBlock(int blkno)
          Reads a block
 int getBlockSize()
          Gets the block size
 void setBlockSize(int aBlockSize)
          Sets the block size
 

Method Detail

getBlock

public byte[] getBlock(int blkno)
                throws java.io.IOException
Reads a block

Throws:
java.io.IOException

getBlockSize

public int getBlockSize()
Gets the block size


setBlockSize

public void setBlockSize(int aBlockSize)
Sets the block size


close

public void close()
           throws java.io.IOException
Closes this block reader

Throws:
java.io.IOException