|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.waldheinz.fs.AbstractFileSystem
public abstract class AbstractFileSystem
Abstract class with common things in different FileSystem implementations.
Constructor Summary | |
---|---|
AbstractFileSystem(boolean readOnly)
Creates a new AbstractFileSystem . |
Method Summary | |
---|---|
protected void |
checkClosed()
Checks if this FileSystem was already closed, and throws an
exception if it was. |
protected void |
checkReadOnly()
Checks if this FileSystem is read-only, and throws an
exception if it is. |
void |
close()
Close this file system. |
boolean |
isClosed()
Returns true if this file system is closed. |
boolean |
isReadOnly()
Returns if this FileSystem is in read-only mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.waldheinz.fs.FileSystem |
---|
flush, getFreeSpace, getRoot, getTotalSpace, getUsableSpace |
Constructor Detail |
---|
public AbstractFileSystem(boolean readOnly)
AbstractFileSystem
.
readOnly
- if the file system should be read-onlyMethod Detail |
---|
public void close() throws IOException
FileSystem
IllegalStateException
.
close
in interface FileSystem
IOException
- on error closing the file systempublic final boolean isClosed()
FileSystem
true
if this file system is closed. If the file system
is closed, no more operations may be performed on it.
isClosed
in interface FileSystem
public final boolean isReadOnly()
FileSystem
FileSystem
is in read-only mode.
isReadOnly
in interface FileSystem
FileSystem
is read-onlyprotected final void checkClosed() throws IllegalStateException
FileSystem
was already closed, and throws an
exception if it was.
IllegalStateException
- if this FileSystem
was
already closedisClosed()
,
close()
protected final void checkReadOnly() throws ReadOnlyException
FileSystem
is read-only, and throws an
exception if it is.
ReadOnlyException
- if this FileSystem
is read-onlyisReadOnly()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |