|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Representation of a file system. This is the main interface applications will use to interface to a filesytem. Methods are provided here for navigating the filesystem.
| Method Summary | |
void |
close()
Close the underlying BlockReader used by this file system. |
Inode |
getInode(InodePtr ptr)
Get an Inode given a point to it. |
FsObject |
getObject(Inode inode)
Get the filesystem object represented by an inode. |
InodePtr |
getRootDir()
Get a pointer to the root directory's inode. |
SuperBlock |
open(BlockReader br)
Open a file system for reading. |
| Method Detail |
public SuperBlock open(BlockReader br)
throws FsException,
java.io.IOException
br - a BlockReader for accessing the physical filesystem.
FsException - if the superblock cannot be parsed.
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOExceptionpublic InodePtr getRootDir()
public Inode getInode(InodePtr ptr)
throws FsException,
java.io.IOException
ptr - an InodePtr
FsException - if the Inode cannot be parsed.
java.io.IOException - if an IO error occurs
public FsObject getObject(Inode inode)
throws FsException,
java.io.IOException
inode - an Inode
FsException - if the object cannot be parsed.
java.io.IOException - if an IO error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||