rossi.fstools.fs.reiserfs
Class KeyV1

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

public class KeyV1
extends Key

Representation of a format 3.5 key.

        31        24        16       8       0
        --------------------------------------
  0000  |        Parent Dir ID               |
        --------------------------------------
  0004  |        Object Id                   |
        --------------------------------------
  0008  |        Offset                      |
        --------------------------------------
  000C  |        Uniqueness                  |
        --------------------------------------
 


Field Summary
static long V1_DIRECT_UNIQUENESS
          Uniqueness value for Direct Items
static long V1_DIRENTRY_UNIQUENESS
          Uniqueness value for Directory Items
static long V1_INDIRECT_UNIQUENESS
          Uniqueness value for Indirect Items
static long V1_SD_UNIQUENESS
          Uniqueness value for Stat Items
 
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
KeyV1()
           
 
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
 

Field Detail

V1_SD_UNIQUENESS

public static long V1_SD_UNIQUENESS
Uniqueness value for Stat Items


V1_INDIRECT_UNIQUENESS

public static long V1_INDIRECT_UNIQUENESS
Uniqueness value for Indirect Items


V1_DIRECT_UNIQUENESS

public static long V1_DIRECT_UNIQUENESS
Uniqueness value for Direct Items


V1_DIRENTRY_UNIQUENESS

public static long V1_DIRENTRY_UNIQUENESS
Uniqueness value for Directory Items

Constructor Detail

KeyV1

public KeyV1()
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.