E - the type of the archive entries.@NotThreadSafe abstract class FsFileSystemArchiveController<E extends FsArchiveEntry> extends FsArchiveController<E>
| Modifier and Type | Class and Description |
|---|---|
private class |
FsFileSystemArchiveController.MountedFileSystem |
private static interface |
FsFileSystemArchiveController.MountState<E extends FsArchiveEntry>
Represents the mount state of the archive file system.
|
private class |
FsFileSystemArchiveController.ResetFileSystem |
| Modifier and Type | Field and Description |
|---|---|
private FsFileSystemArchiveController.MountState<E> |
mountState
The mount state of the archive file system.
|
| Constructor and Description |
|---|
FsFileSystemArchiveController(FsLockModel model)
Creates a new instance of FsFileSystemArchiveController
|
| Modifier and Type | Method and Description |
|---|---|
(package private) FsArchiveFileSystem<E> |
autoMount(boolean autoCreate)
Returns the (virtual) archive file system mounted from the target
archive file.
|
(package private) FsArchiveFileSystem<E> |
getFileSystem() |
(package private) abstract void |
mount(boolean autoCreate)
Mounts the (virtual) archive file system from the target file.
|
(package private) void |
setFileSystem(FsArchiveFileSystem<E> fileSystem) |
autoMount, checkSync, getContext, getEntry, getInputSocket, getInputSocket, getOutputSocket, getOutputSocket, isReadable, isReadOnly, isWritable, mknod, setContext, setReadOnly, setTime, setTime, unlinkcheckWriteLockedByCurrentThread, isWriteLockedByCurrentThread, readLock, writeLockgetModel, getMountPoint, isTouched, setTouchedequals, getParent, hashCode, isExecutable, sync, sync, toStringprivate FsFileSystemArchiveController.MountState<E extends FsArchiveEntry> mountState
FsFileSystemArchiveController(FsLockModel model)
final FsArchiveFileSystem<E> autoMount(boolean autoCreate) throws IOException
FsArchiveControllerautoMount in class FsArchiveController<E extends FsArchiveEntry>autoCreate - If this is true and the archive file does not
exist, then a new archive file system with only a (virtual)
root directory is created with its last modification time set
to the system's current time.IOException@Nullable final FsArchiveFileSystem<E> getFileSystem()
abstract void mount(boolean autoCreate)
throws IOException
Upon normal termination, this method is expected to have called
setFileSystem(de.schlichtherle.truezip.fs.archive.FsArchiveFileSystem<E>) to assign the fully initialized file system
to this controller.
Other than this, the method must not have any side effects on the
state of this class or its super class.
It may, however, have side effects on the state of the sub class.
autoCreate - If the archive file does not exist and this is
true, a new file system with only a (virtual) root
directory is created with its last modification time set to the
system's current time.IOExceptionfinal void setFileSystem(@CheckForNull FsArchiveFileSystem<E> fileSystem)
Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.