E - The type of the archive entries.@NotThreadSafe final class FsReadOnlyArchiveFileSystem<E extends FsArchiveEntry> extends FsArchiveFileSystem<E>
All modifying methods throw a FsReadOnlyArchiveFileSystemException.
OVERHEAD_SIZE| Constructor and Description |
|---|
FsReadOnlyArchiveFileSystem(EntryContainer<E> archive,
FsArchiveDriver<E> driver,
Entry rootTemplate) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
isReadOnly()
Returns
true to indicate that this archive file system is
read-only. |
(package private) FsArchiveFileSystemOperation<E> |
mknod(FsEntryName name,
Entry.Type type,
BitField<FsOutputOption> options,
Entry template)
Begins a transaction to create or replace and finally link a
chain of one or more archive entries for the given
path into
this archive file system. |
(package private) boolean |
setTime(FsEntryName path,
BitField<Entry.Access> types,
long value) |
(package private) boolean |
setTime(FsEntryName path,
Map<Entry.Access,Long> times) |
(package private) void |
unlink(FsEntryName path)
Tests the named file system entry and then - unless its the file system
root - notifies the listener and deletes the entry.
|
addFsArchiveFileSystemTouchListener, getEntry, getFsArchiveFileSystemTouchListeners, getSize, isWritable, iterator, newEmptyFileSystem, newPopulatedFileSystem, removeFsArchiveFileSystemTouchListener, setReadOnlyFsReadOnlyArchiveFileSystem(@WillNotClose EntryContainer<E> archive, FsArchiveDriver<E> driver, @CheckForNull Entry rootTemplate) throws FsArchiveFileSystemException
FsArchiveFileSystemExceptionboolean isReadOnly()
true to indicate that this archive file system is
read-only.isReadOnly in class FsArchiveFileSystem<E extends FsArchiveEntry>trueFsArchiveFileSystemOperation<E> mknod(FsEntryName name, Entry.Type type, BitField<FsOutputOption> options, Entry template) throws FsArchiveFileSystemException
FsArchiveFileSystempath into
this archive file system.
To commit the transaction, you need to call
FsArchiveFileSystemOperation.commit() on the returned object, which
will mark this archive file system as touched and set the last
modification time of the created and linked archive file system entries
to the system's current time at the moment of the call to this method.
mknod in class FsArchiveFileSystem<E extends FsArchiveEntry>name - the archive file system entry name.type - the type of the archive file system entry to create.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 archive 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.FsArchiveFileSystemOperation.commit() method.FsArchiveFileSystemException - If one of the following is true:
name contains characters which are not
supported by the file system.
FILE or DIRECTORY.
FsOutputOption.EXCLUSIVE is set or the entry is a
directory.
createParents is
false.
boolean setTime(FsEntryName path, BitField<Entry.Access> types, long value) throws FsArchiveFileSystemException
setTime in class FsArchiveFileSystem<E extends FsArchiveEntry>FsArchiveFileSystemExceptionboolean setTime(FsEntryName path, Map<Entry.Access,Long> times) throws FsArchiveFileSystemException
setTime in class FsArchiveFileSystem<E extends FsArchiveEntry>FsArchiveFileSystemExceptionvoid unlink(FsEntryName path) throws FsArchiveFileSystemException
FsArchiveFileSystemunlink in class FsArchiveFileSystem<E extends FsArchiveEntry>path - the archive file system entry name.FsReadOnlyArchiveFileSystemException - If this (virtual) archive
file system is read-only.FsArchiveFileSystemException - If the operation fails for some other
reason.Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.