|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileSystem
The interface common to all file system implementations.
Method Summary | |
---|---|
void |
close()
Close this file system. |
void |
flush()
Flushes any modified file system structures to the underlying storage. |
long |
getFreeSpace()
The free space of this file system. |
FsDirectory |
getRoot()
Gets the root entry of this filesystem. |
long |
getTotalSpace()
The total size of this file system. |
long |
getUsableSpace()
The usable space of this file system. |
boolean |
isClosed()
Returns true if this file system is closed. |
boolean |
isReadOnly()
Returns if this FileSystem is in read-only mode. |
Method Detail |
---|
FsDirectory getRoot() throws IOException
IOException
- on read errorboolean isReadOnly()
FileSystem
is in read-only mode.
FileSystem
is read-onlyvoid close() throws IOException
IllegalStateException
.
IOException
- on error closing the file systemboolean isClosed()
true
if this file system is closed. If the file system
is closed, no more operations may be performed on it.
long getTotalSpace() throws IOException
IOException
- if an I/O error occurslong getFreeSpace() throws IOException
IOException
- if an I/O error occurslong getUsableSpace() throws IOException
IOException
- if an I/O error occursvoid flush() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |