|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.reiserfs.Key
Representation of a key. There are two versions, KeyV1 and KeyV2.
The two versions differ in the way they represent offset and type on disk.
| Field Summary | |
static int |
KEY_FORMAT_3_5
Indicates Key format 3.5 |
static int |
KEY_FORMAT_3_6
Indicates Key format 3.6 |
protected long |
objectId
|
protected long |
offset
|
protected long |
parentDirId
|
protected int |
type
|
static int |
TYPE_DIRECT
Type indicating Direct Item. |
static int |
TYPE_DIRENTRY
Type indicating Directory Item. |
static int |
TYPE_INDIRECT
Type indicating Indirect Item. |
static int |
TYPE_MAXTYPE
|
static int |
TYPE_STAT_DATA
Type indicating Stat Item. |
| Constructor Summary | |
Key()
|
|
| Method Summary | |
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object other)
Defines the sort order of Keys. |
static Key |
createKeyFromBuffer(byte[] buffer,
int blkoffset)
Creates a key object given a buffer. |
int |
getDataSize()
Get the size in bytes of the structure. |
long |
getObjectId()
Get the identifier for this object. |
long |
getOffset()
Get the offset. |
long |
getParentDirId()
Get the identifier for the parent directory. |
int |
getType()
Get the item type. |
void |
setObjectId(long aObjectId)
|
void |
setOffset(long aOffset)
|
void |
setParentDirId(long aParentDirId)
|
void |
setType(int aType)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface rossi.fstools.fs.DiskStructure |
loadFromBuffer |
| Field Detail |
public static final int KEY_FORMAT_3_5
public static final int KEY_FORMAT_3_6
public static final int TYPE_STAT_DATA
public static final int TYPE_INDIRECT
public static final int TYPE_DIRECT
public static final int TYPE_DIRENTRY
public static final int TYPE_MAXTYPE
protected long parentDirId
protected long objectId
protected long offset
protected int type
| Constructor Detail |
public Key()
| Method Detail |
public int getDataSize()
DiskStructure
getDataSize in interface DiskStructurepublic long getParentDirId()
public void setParentDirId(long aParentDirId)
public long getObjectId()
public void setObjectId(long aObjectId)
public long getOffset()
public void setOffset(long aOffset)
public int getType()
public void setType(int aType)
public static Key createKeyFromBuffer(byte[] buffer,
int blkoffset)
throws FsException
FsExceptionpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparable
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||