|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.fatfs.FatFile
Representation of a file.
| Field Summary | |
protected java.util.List |
blkPointerList
|
protected BlockReader |
reader
|
protected FatSuperBlock |
sb
|
protected long |
size
|
protected long |
sizeRemaining
|
protected java.util.List |
slackList
|
| Constructor Summary | |
FatFile(FatSuperBlock sb,
long fileSize,
BlockReader reader)
Create a file. |
|
| Method Summary | |
void |
add(int cluster)
Adds the specified cluster to the file. |
BlockPointerInputStream |
getData()
Get a BlockPointerInputStream to the data contained within the file. |
BlockPointerInputStream |
getSlack()
Get a BlockPointerInputStream to the slack space contained at the end of the file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List blkPointerList
protected java.util.List slackList
protected long size
protected long sizeRemaining
protected BlockReader reader
protected FatSuperBlock sb
| Constructor Detail |
public FatFile(FatSuperBlock sb,
long fileSize,
BlockReader reader)
sb - a FatSuperBlockfileSize - The length of the file from its Inode.reader - a BlockReader to read the disk.| Method Detail |
public void add(int cluster)
cluster - number of the block to be added.public BlockPointerInputStream getData()
File
getData in interface FileBlockPointerInputStreampublic BlockPointerInputStream getSlack()
File
getSlack in interface FileBlockPointerInputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||