|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.reiserfs.Item
Representation of a Item.
An item is an abstract data holder within a block.
Items are the fundamental unit of storage in ReiserFS. All data is packed into items which are in turn packed into blocks. Items have variable size and this is how ReiserFS achives low overhead on small files.
This class isnt typically used directly, rather on of the many subclasses is used.
| Field Summary | |
protected LeafNode |
block
|
protected byte[] |
buffer
|
protected int |
bufferOffset
|
protected ItemHead |
header
|
| Constructor Summary | |
Item(byte[] buffer,
int bufferOffset,
LeafNode block,
ItemHead header)
Create a new Item. |
|
| Method Summary | |
LeafNode |
getBlock()
Get the LeafNode that contains this item. |
BlockPointer |
getBlockPointer()
Gets a block pointer to the item data. |
byte[] |
getBuffer()
Get the buffer holding this item's data. |
int |
getBufferOffset()
Get the offset within the buffer where this item's data starts. |
ItemHead |
getHeader()
Get the item header for this item. |
byte[] |
getRawData()
Get the raw data comprising this item. |
void |
setBlock(LeafNode aBlock)
|
void |
setBuffer(byte[] aBuffer)
|
void |
setBufferOffset(int aBufferOffset)
|
void |
setHeader(ItemHead aHeader)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[] buffer
protected int bufferOffset
protected LeafNode block
protected ItemHead header
| Constructor Detail |
public Item(byte[] buffer,
int bufferOffset,
LeafNode block,
ItemHead header)
buffer - a byte[] containing the item databufferOffset - a int specifying the offset within the buffer where the item starts.block - a LeafNode containing this item.header - a ItemHead - header for this item.| Method Detail |
public byte[] getBuffer()
public void setBuffer(byte[] aBuffer)
public int getBufferOffset()
public void setBufferOffset(int aBufferOffset)
public LeafNode getBlock()
public void setBlock(LeafNode aBlock)
public ItemHead getHeader()
public void setHeader(ItemHead aHeader)
public BlockPointer getBlockPointer()
public byte[] getRawData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||