rossi.fstools.fs.reiserfs
Class KeyV2

java.lang.Object
  extended byrossi.fstools.fs.reiserfs.Key
      extended byrossi.fstools.fs.reiserfs.KeyV2
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, DiskStructure, InodePtr

public class KeyV2
extends Key

Representation of a format 3.6 key. This version allows for larger offsets.

        31        24        16       8       0
        --------------------------------------
  0000  |        Parent Dir ID               |
        --------------------------------------
  0004  |        Object Id                   |
        --------------------------------------
  0008  |        Offset  (bits 0-31)         |
        --------------------------------------
  000C  |      Offset (bits 32-59)      |type|
        --------------------------------------
 


Field Summary
 
Fields inherited from class rossi.fstools.fs.reiserfs.Key
KEY_FORMAT_3_5, KEY_FORMAT_3_6, objectId, offset, parentDirId, type, TYPE_DIRECT, TYPE_DIRENTRY, TYPE_INDIRECT, TYPE_MAXTYPE, TYPE_STAT_DATA
 
Constructor Summary
KeyV2()
           
 
Method Summary
 void loadFromBuffer(byte[] buffer, int blkoffset)
          Loads the object from a memory buffer
 
Methods inherited from class rossi.fstools.fs.reiserfs.Key
clone, compareTo, createKeyFromBuffer, getDataSize, getObjectId, getOffset, getParentDirId, getType, setObjectId, setOffset, setParentDirId, setType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyV2

public KeyV2()
Method Detail

loadFromBuffer

public void loadFromBuffer(byte[] buffer,
                           int blkoffset)
                    throws FsException
Description copied from interface: DiskStructure
Loads the object from a memory buffer

Parameters:
buffer - a byte[] containing data to be read in populating the object
blkoffset - a int indicating the offset within the buffer to start parsing.
Throws:
FsException - if a parse error occurs.