D - the type of the ZIP driver.@ThreadSafe public abstract class KeyManagerController<D extends ZipDriver> extends FsDecoratingController<FsModel,FsController<?>>
| Modifier and Type | Field and Description |
|---|---|
protected D |
driver |
delegate| Modifier | Constructor and Description |
|---|---|
protected |
KeyManagerController(FsController<?> controller,
D driver)
Constructs a new key manager controller.
|
| Modifier and Type | Method and Description |
|---|---|
FsEntry |
getEntry(FsEntryName name)
Returns the file system entry for the given name or
null if it
doesn't exist. |
protected abstract Class<? extends IOException> |
getKeyExceptionType() |
protected abstract Class<?> |
getKeyType() |
<X extends IOException> |
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,
releases the associated resources (e.g.
|
void |
unlink(FsEntryName name,
BitField<FsOutputOption> options)
Removes the named file system entry from the file system.
|
getClosedIcon, getInputSocket, getOpenIcon, getOutputSocket, getParent, isExecutable, isReadable, isReadOnly, isWritable, mknod, setReadOnly, setTime, setTime, toStringgetModel, getMountPoint, isTouched, setTouchedequals, hashCode, syncprotected KeyManagerController(FsController<?> controller, D driver)
controller - the non-null file system controller to
decorate.driver - the ZIP driver.public FsEntry getEntry(FsEntryName name) throws IOException
FsControllernull if it
doesn't exist.
Modifying the returned entry does not show any effect on the file system
and may result in an UnsupportedOperationException.getEntry in class FsDecoratingController<FsModel,FsController<?>>name - the name of the file system entry.null if no file system entry
exists for the given name.IOException - on any I/O failure.protected abstract Class<? extends IOException> getKeyExceptionType()
protected abstract Class<?> getKeyType()
public <X extends IOException> void sync(BitField<FsSyncOption> options, ExceptionHandler<? super FsSyncException,X> handler) throws IOException
FsControllersync in class FsDecoratingController<FsModel,FsController<?>>X - The type of the IOException to throw at the
discretion of the exception handler.options - a bit field of synchronization options.handler - the exception handling strategy for consuming input
FsSyncExceptions and mapping them to output
IOExceptions.IOException - on any other (not necessarily I/O related) failure.public void unlink(FsEntryName name, BitField<FsOutputOption> options) throws IOException
FsControllerunlink in class FsDecoratingController<FsModel,FsController<?>>name - the file system entry name.options - output options for this operation.IOException - on any I/O failure.Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.