|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileSystem
File system operations.
Method Summary | |
---|---|
void |
close()
Close the filesystem. |
ImgChannel |
create(java.lang.String name)
Create a new file it must not already exist. |
FileSystemParam |
fsparam()
Get the filesystem / archive parameters. |
void |
fsparam(FileSystemParam param)
Reconfigure the filesystem with the given parameters. |
java.util.List<DirectoryEntry> |
list()
List all the files in the directory. |
DirectoryEntry |
lookup(java.lang.String name)
Lookup the file and return a directory entry for it. |
ImgChannel |
open(java.lang.String name,
java.lang.String mode)
Open a file. |
void |
sync()
Sync with the underlying file. |
Method Detail |
---|
ImgChannel create(java.lang.String name) throws FileExistsException
name
- The file name.
FileExistsException
- If the file already exists.ImgChannel open(java.lang.String name, java.lang.String mode) throws java.io.FileNotFoundException
name
- The file name to open.mode
- Either "r" for read access, "w" for write access or "rw"
for both read and write.
java.io.FileNotFoundException
- When the file does not exist.DirectoryEntry lookup(java.lang.String name) throws java.io.IOException
name
- The filename to look up.
java.io.IOException
- If an error occurs reading the directory.java.util.List<DirectoryEntry> list()
FileSystemParam fsparam()
void fsparam(FileSystemParam param)
param
- The new parameters.
java.lang.IllegalStateException
- If the changes cannot be made (for example
if the file system is already written).void sync() throws java.io.IOException
java.io.IOException
- If an error occurs during the write.void close()
close
in interface java.io.Closeable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |