|
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.archive.FsArchiveFileSystem<E>
de.schlichtherle.truezip.fs.archive.FsReadOnlyArchiveFileSystem<E>
E - The type of the archive entries.@NotThreadSafe final class FsReadOnlyArchiveFileSystem<E extends FsArchiveEntry>
A read-only archive file system.
All modifying methods throw a FsReadOnlyArchiveFileSystemException.
| Constructor Summary | |
|---|---|
FsReadOnlyArchiveFileSystem(EntryContainer<E> archive,
EntryFactory<E> factory,
Entry rootTemplate)
|
|
| Method Summary | |
|---|---|
boolean |
isReadOnly()
The implementation in this class returns true. |
boolean |
isTouched()
Returns true if and only if this archive file system has been
modified since its time of creation. |
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. |
boolean |
setTime(FsEntryName path,
BitField<Entry.Access> types,
long value)
|
void |
unlink(FsEntryName path)
If this method returns, the file system entry identified by the given path has been successfully deleted from this archive file
system. |
| Methods inherited from class de.schlichtherle.truezip.fs.archive.FsArchiveFileSystem |
|---|
addArchiveFileSystemTouchListener, copy, getArchiveFileSystemTouchListeners, getEntry, getEntry, getSize, isWritable, iterator, newArchiveFileSystem, newArchiveFileSystem, removeArchiveFileSystemTouchListener, setReadOnly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
FsReadOnlyArchiveFileSystem(@NonNull
EntryContainer<E> archive,
@NonNull
EntryFactory<E> factory,
@CheckForNull
Entry rootTemplate)
| Method Detail |
|---|
public boolean isReadOnly()
true.
isReadOnly in class FsArchiveFileSystem<E extends FsArchiveEntry>public boolean isTouched()
FsArchiveFileSystemtrue if and only if this archive file system has been
modified since its time of creation.
isTouched in class FsArchiveFileSystem<E extends FsArchiveEntry>
@NonNull
public FsArchiveFileSystemOperation<E> mknod(@NonNull
FsEntryName name,
@NonNull
Entry.Type type,
@NonNull
BitField<FsOutputOption> options,
@CheckForNull
Entry template)
throws FsArchiveFileSystemException
FsArchiveFileSystempath into
this archive file system.
To commit the transaction, you need to call
FsArchiveFileSystemOperation.run() 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 - an entry name.type - an entry type.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.run() 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.
public void unlink(FsEntryName path)
throws FsArchiveFileSystemException
FsArchiveFileSystempath has been successfully deleted from this archive file
system.
If the file system entry is a directory, it must be empty for successful
deletion.
unlink in class FsArchiveFileSystem<E extends FsArchiveEntry>FsArchiveFileSystemException - If the operation fails for some other
reason.
public boolean setTime(FsEntryName path,
BitField<Entry.Access> types,
long value)
throws FsArchiveFileSystemException
setTime in class FsArchiveFileSystem<E extends FsArchiveEntry>FsArchiveFileSystemException
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||