|
||||||||||
| 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-only| Method Detail |
|---|
public void close()
throws IOException
FileSystemIllegalStateException.
close in interface FileSystemIOException - on error closing the file systempublic final boolean isClosed()
FileSystemtrue if this file system is closed. If the file system
is closed, no more operations may be performed on it.
isClosed in interface FileSystempublic final boolean isReadOnly()
FileSystemFileSystem is in read-only mode.
isReadOnly in interface FileSystemFileSystem is read-only
protected 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 | |||||||||