|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.fatfs.VFatDirEntry
Representation of a VFAT directory entry. This is where long filenames are stored.
On disk the superblock looks like this:
31 24 16 8 0
--------------------------------------
0000 | Seq | Name |
--------------------------------------
0004 | Name |
--------------------------------------
0008 | Name |Attr |
--------------------------------------
000C | Resrvd| Hash | Name |
--------------------------------------
0010 | Name |
--------------------------------------
0014 | Name |
--------------------------------------
0018 | Name | Start |
--------------------------------------
001C | Name |
--------------------------------------
| Field Summary | |
protected byte |
attr
Attributes. |
protected byte |
hashValue
Hash value of the FatDirEntry this is associated with. |
protected java.lang.String |
name
A fragment of the long filename. |
protected byte |
sequence
Sequence number. |
protected int |
start
Starting cluster |
| Constructor Summary | |
VFatDirEntry()
Default constructor. |
|
| Method Summary | |
byte |
getAttr()
Attribute byte. |
int |
getDataSize()
Get the size in bytes of the structure. |
byte |
getHashValue()
Hash value of the FatDirEntry this long filename vfat record is assocated with. |
java.lang.String |
getName()
Fragment of the long name stored in this record. |
byte |
getSequence()
Get the sequence number. |
int |
getStart()
Starting cluster. |
void |
loadFromBuffer(byte[] buffer,
int offset)
Loads the object from a memory buffer |
void |
setAttr(byte aAttr)
|
void |
setHashValue(byte aHashValue)
|
void |
setName(java.lang.String aName)
|
void |
setSequence(byte aSequence)
|
void |
setStart(int aStart)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte sequence
protected java.lang.String name
protected byte attr
protected byte hashValue
protected int start
| Constructor Detail |
public VFatDirEntry()
| Method Detail |
public int getDataSize()
DiskStructure
getDataSize in interface DiskStructurepublic byte getSequence()
public void setSequence(byte aSequence)
public java.lang.String getName()
public void setName(java.lang.String aName)
public byte getAttr()
public void setAttr(byte aAttr)
public byte getHashValue()
public void setHashValue(byte aHashValue)
public int getStart()
public void setStart(int aStart)
public void loadFromBuffer(byte[] buffer,
int offset)
throws FsException
DiskStructure
loadFromBuffer in interface DiskStructurebuffer - a byte[] containing data to be read in populating the objectoffset - a int indicating the offset within the buffer to start parsing.
FsException - if a parse error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||