rossi.fstools.io
Class BlockPointer

java.lang.Object
  extended byrossi.fstools.io.BlockPointer

public class BlockPointer
extends java.lang.Object

This class represents a pointer to a chunk of data on disk. A file may be composed of a list of these. Note that length may be longer than blockSize. In which case this pointer represents multiple consecutive blocks.


Field Summary
protected  int blockNum
           
protected  int blockSize
           
protected  int length
           
protected  int offset
           
 
Constructor Summary
BlockPointer()
           
 
Method Summary
 int getBlockNum()
           
 int getBlockSize()
           
 int getLength()
           
 int getOffset()
           
 void setBlockNum(int aBlockNum)
           
 void setBlockSize(int aBlockSize)
           
 void setLength(int aLength)
           
 void setOffset(int aOffset)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

blockNum

protected int blockNum

offset

protected int offset

length

protected int length

blockSize

protected int blockSize
Constructor Detail

BlockPointer

public BlockPointer()
Method Detail

getBlockNum

public int getBlockNum()

setBlockNum

public void setBlockNum(int aBlockNum)

getOffset

public int getOffset()

setOffset

public void setOffset(int aOffset)

getLength

public int getLength()

setLength

public void setLength(int aLength)

getBlockSize

public int getBlockSize()

setBlockSize

public void setBlockSize(int aBlockSize)

toString

public java.lang.String toString()