|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.fs.FsController<M>
de.schlichtherle.truezip.fs.FsDecoratingController<M,C>
M - The type of the file system model.C - The type of the decorated file system controller.@ThreadSafe public abstract class FsDecoratingController<M extends FsModel,C extends FsController<? extends M>>
An abstract decorator for a file system controller.
| Field Summary | |
|---|---|
protected C |
delegate
The decorated file system controller. |
private M |
model
|
| Constructor Summary | |
|---|---|
protected |
FsDecoratingController(C controller)
Constructs a new decorating file system controller. |
| Method Summary | ||
|---|---|---|
Icon |
getClosedIcon()
|
|
FsEntry |
getEntry(FsEntryName name)
|
|
InputSocket<?> |
getInputSocket(FsEntryName name,
BitField<FsInputOption> options)
Returns an input socket for reading the contents of the entry addressed by the given name from the file system. |
|
M |
getModel()
Returns the file system model. |
|
Icon |
getOpenIcon()
|
|
OutputSocket<?> |
getOutputSocket(FsEntryName name,
BitField<FsOutputOption> options,
Entry template)
Returns an output socket for writing the contents of the entry addressed by the given name to the file system. |
|
FsController<?> |
getParent()
Returns the controller for the parent file system or null if
and only if this file system is not federated, i.e. not a member of
another file system. |
|
boolean |
isReadable(FsEntryName name)
|
|
boolean |
isReadOnly()
|
|
boolean |
isWritable(FsEntryName name)
|
|
void |
mknod(FsEntryName name,
Entry.Type type,
BitField<FsOutputOption> options,
Entry template)
Creates or replaces and finally links a chain of one or more entries for the given entry name into the file system. |
|
void |
setReadOnly(FsEntryName name)
|
|
boolean |
setTime(FsEntryName name,
BitField<Entry.Access> types,
long value)
|
|
|
sync(BitField<FsSyncOption> options,
ExceptionHandler<? super FsSyncException,X> handler)
Commits all unsynchronized changes to the contents of this file system to its parent file system. |
|
String |
toString()
Returns a string representation of this object for debugging and logging purposes. |
|
void |
unlink(FsEntryName name)
|
|
| Methods inherited from class de.schlichtherle.truezip.fs.FsController |
|---|
equals, hashCode, sync |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final C extends FsController<? extends M> delegate
private volatile M extends FsModel model
| Constructor Detail |
|---|
protected FsDecoratingController(@NonNull
C controller)
controller - the decorated file system controller.| Method Detail |
|---|
public final M getModel()
FsController
getModel in class FsController<M extends FsModel>public FsController<?> getParent()
FsControllernull if
and only if this file system is not federated, i.e. not a member of
another file system.
getParent in class FsController<M extends FsModel>
public Icon getOpenIcon()
throws IOException
getOpenIcon in class FsController<M extends FsModel>IOException
public Icon getClosedIcon()
throws IOException
getClosedIcon in class FsController<M extends FsModel>IOException
public boolean isReadOnly()
throws IOException
isReadOnly in class FsController<M extends FsModel>IOException
public FsEntry getEntry(FsEntryName name)
throws IOException
getEntry in class FsController<M extends FsModel>IOException
public boolean isReadable(FsEntryName name)
throws IOException
isReadable in class FsController<M extends FsModel>IOException
public boolean isWritable(FsEntryName name)
throws IOException
isWritable in class FsController<M extends FsModel>IOException
public void setReadOnly(FsEntryName name)
throws IOException
setReadOnly in class FsController<M extends FsModel>IOException
public boolean setTime(FsEntryName name,
BitField<Entry.Access> types,
long value)
throws IOException
setTime in class FsController<M extends FsModel>IOException
public InputSocket<?> getInputSocket(FsEntryName name,
BitField<FsInputOption> options)
FsController
getInputSocket in class FsController<M extends FsModel>name - a file system entry name.
InputSocket.
public OutputSocket<?> getOutputSocket(FsEntryName name,
BitField<FsOutputOption> options,
Entry template)
FsControllertemplate is not null, then the output entry shall
have as many of its properties copied as reasonable, e.g. the last
modification time.
getOutputSocket in class FsController<M extends FsModel>name - a file system entry name.template - a nullable template for the properties of the output
entry.
OutputSocket.
public void mknod(FsEntryName name,
Entry.Type type,
BitField<FsOutputOption> options,
Entry template)
throws IOException
FsControllername into the file system.
mknod in class FsController<M extends FsModel>name - the file system entry name.type - the file system entry type.options - the file system output options.
If CREATE_PARENTS is set, any missing parent directories
will be created and linked into this file system with its last
modification time set to the system's current time.template - if not null, then the file system entry
at the end of the chain shall inherit as much properties from
this entry as possible - with the exception of its name and type.
IOException - for some other I/O related reason, including but
not exclusively upon one or more of the following conditions:
name contains characters which are not
supported by the file system.
FsOutputOption.EXCLUSIVE is set or the entry is a
directory.
createParents is
false.
public void unlink(FsEntryName name)
throws IOException
unlink in class FsController<M extends FsModel>IOException
public <X extends IOException> void sync(@NonNull
BitField<FsSyncOption> options,
@NonNull
ExceptionHandler<? super FsSyncException,X> handler)
throws X extends IOException
FsController
sync in class FsController<M extends FsModel>X - the type of the IOException to throw at the
discretion of the exception handler.options - the synchronization options.handler - the exception handling strategy for dealing with one or
more input FsSyncExceptions which may trigger an X.
X extends IOExceptionpublic String toString()
toString in class FsController<M extends FsModel>
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||