|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FsDirectory
Base class for all FileSystem directories.
| Method Summary | |
|---|---|
FsDirectoryEntry |
addDirectory(String name)
Add a new (sub-)directory with a given name to this directory. |
FsDirectoryEntry |
addFile(String name)
Add a new file with a given name to this directory. |
void |
flush()
Save all dirty (unsaved) data to the device. |
FsDirectoryEntry |
getEntry(String name)
Gets the entry with the given name. |
Iterator<FsDirectoryEntry> |
iterator()
Gets an iterator to iterate over the entries of this directory. |
void |
remove(String name)
Remove the entry with the given name from this directory. |
| Methods inherited from interface de.waldheinz.fs.FsObject |
|---|
isReadOnly, isValid |
| Method Detail |
|---|
Iterator<FsDirectoryEntry> iterator()
iterator in interface Iterable<FsDirectoryEntry>
FsDirectoryEntry getEntry(String name)
throws IOException
name - the name of the entry to get
IOException - on error retrieving the entry
FsDirectoryEntry addFile(String name)
throws IOException
name - the name of the file to add
IOException - on error creating the file
FsDirectoryEntry addDirectory(String name)
throws IOException
name - the name of the sub-directory to add
IOException - on error creating the directory
void remove(String name)
throws IOException
name - name of the entry to remove
IOException - on error deleting the entry
void flush()
throws IOException
IOException - on write error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||