|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.ext2fs.Ext2FileSystem
Implementation of the EXT2 and EXT3 file systems.
| Field Summary | |
static long |
EXT2_BAD_INO
Inode number of the bad blocks file. |
static long |
EXT2_ROOT_INO
Inode number of the root directory. |
| Constructor Summary | |
Ext2FileSystem()
|
|
| Method Summary | |
void |
close()
Close the underlying BlockReader used by this file system. |
Device |
createExt2Device(Ext2Inode inode)
Create a device. |
Directory |
createExt2Directory(Ext2Inode inode)
Create a directory. |
File |
createExt2File(Ext2Inode inode)
Creates a file from an inode |
SymLink |
createExt2SymLink(Ext2Inode inode)
Create a symlink. |
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 |
| Field Detail |
public static final long EXT2_BAD_INO
public static final long EXT2_ROOT_INO
| Constructor Detail |
public Ext2FileSystem()
| 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 createExt2File(Ext2Inode 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 createExt2Directory(Ext2Inode inode)
throws FsException,
java.io.IOException
inode - a Ext2Inode
FsException
java.io.IOExceptionpublic Device createExt2Device(Ext2Inode inode)
inode - a Ext2Inode
public SymLink createExt2SymLink(Ext2Inode 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 | |||||||||