|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.fatfs.FatFileSystem
Implementation of the FAT 12/16/32 file systems.
| Constructor Summary | |
FatFileSystem()
|
|
| Method Summary | |
void |
close()
Close the underlying BlockReader used by this file system. |
Directory |
createFatDirectory(FatDirEntry inode)
Create a directory. |
File |
createFatFile(FatDirEntry inode)
Creates a file from an inode |
Inode |
getInode(InodePtr ptr)
Gets an inode. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FatFileSystem()
| Method Detail |
public SuperBlock open(BlockReader br)
throws FsException,
java.io.IOException
FileSystem
open in interface FileSystembr - a BlockReader for accessing the physical filesystem.
java.io.IOException
FsException - if the superblock cannot be parsed.
public void close()
throws java.io.IOException
FileSystem
close in interface FileSystemjava.io.IOExceptionpublic InodePtr getRootDir()
FileSystem
getRootDir in interface FileSystem
public Inode getInode(InodePtr ptr)
throws FsException,
java.io.IOException
getInode in interface FileSystemptr - an InodePtr
FsException - if the Inode cannot be parsed.
java.io.IOException - if an IO error occurs
public File createFatFile(FatDirEntry inode)
throws FsException,
java.io.IOException
inode - the inode
java.io.IOException - in case of an IO error
FSException - in case of a FS format error
FsException
public Directory createFatDirectory(FatDirEntry inode)
throws FsException,
java.io.IOException
inode - a Ext2Inode
FsException
java.io.IOException
public FsObject getObject(Inode inode)
throws FsException,
java.io.IOException
FileSystem
getObject in interface FileSysteminode - 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 | |||||||||