Package | Description |
---|---|
de.schlichtherle.truezip.file |
Provides uniform, transparent, thread-safe, read/write access to archive
files as if they were just plain directories in a file system path by means
of the
TFile* classes and their dependent classes. |
de.schlichtherle.truezip.file.swing |
Provides Swing GUI classes for viewing file trees and choosing entries in
archive files.
|
de.schlichtherle.truezip.nio.file |
Provides uniform, transparent, thread-safe, read/write access to archive
files as if they were just plain directories in a file system path by means
of the
TPath class and its
dependent classes. |
Modifier and Type | Method and Description |
---|---|
TFile |
TFile.compact()
Compacts this archive file by removing any redundant archive entry
contents and meta data, including central directories.
|
TFile |
TFile.cp_p(File dst)
Equivalent to
cp_p(this, dst) . |
TFile |
TFile.cp_r(File dst)
Equivalent to
cp_r(this, dst, getArchiveDetector(), getArchiveDetector()) . |
TFile |
TFile.cp_rp(File dst)
Equivalent to
cp_rp(this, dst, getArchiveDetector(), getArchiveDetector()) . |
TFile |
TFile.cp(File dst)
Equivalent to
cp(this, dst) . |
TFile |
TFile.getAbsoluteFile() |
TFile |
TFile.getCanonicalFile() |
TFile |
TFile.getCanOrAbsFile()
This convenience method simply returns the canonical form of this
abstract path or the normalized absolute form if resolving the
prior fails.
|
TFile |
TFile.getEnclArchive()
Returns the enclosing archive file object for this file object.
|
TFile |
TFile.getInnerArchive()
Returns the innermost archive file object for this file object.
|
TFile |
TFile.getNonArchivedParentFile()
Returns the first parent directory (starting from this file) which is
not an archive file or a file located in an archive file.
|
TFile |
TFile.getNormalizedAbsoluteFile()
Similar to
getAbsoluteFile() , but removes any
"." and ".." directories from the path name wherever
possible. |
TFile |
TFile.getNormalizedFile()
Removes any redundant
"." and ".." directories from the
path name. |
TFile |
TFile.getParentFile() |
TFile |
TFile.getTopLevelArchive()
Returns the top level archive file in the path or
null if this
file object does not name an archive file. |
TFile[] |
TFile.listFiles()
Equivalent to
listFiles((FilenameFilter) null, getArchiveDetector()) . |
TFile[] |
TFile.listFiles(FileFilter filter)
Equivalent to
listFiles(fileFilter, getArchiveDetector()) . |
TFile[] |
TFile.listFiles(FileFilter filter,
TArchiveDetector detector)
Returns
TFile objects for the members in this directory
which are accepted by fileFilter in a newly created array. |
TFile[] |
TFile.listFiles(FilenameFilter filter)
Equivalent to
listFiles(filenameFilter, getArchiveDetector()) . |
TFile[] |
TFile.listFiles(FilenameFilter filter,
TArchiveDetector detector)
Returns
TFile objects for the members in this directory
which are accepted by filenameFilter in a newly created
array. |
TFile[] |
TFile.listFiles(TArchiveDetector detector)
Returns
TFile objects for the members in this directory
in a newly created array. |
TFile |
TFile.mkdir(boolean recursive)
Ensures that a (virtual) directory with
this path name
exists in the (federated) file system. |
TFile |
TFile.mv(File dst)
Equivalent to
mv(this, dst, getArchiveDetector()) . |
TFile |
TFile.rm_r()
Equivalent to
rm_r(this) . |
TFile |
TFile.rm()
Equivalent to
rm(this) . |
TFile |
TFile.toNonArchiveFile()
Returns a file object for the same path name, but does not detect any
archive file name patterns in the last path name segment.
|
Modifier and Type | Method and Description |
---|---|
static void |
TVFS.sync(TFile tree,
BitField<FsSyncOption> options)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system with respect to the given options. |
static void |
TFile.sync(TFile archive,
BitField<FsSyncOption> options)
Deprecated.
As of TrueZIP 7.5, replaced by
TVFS.sync(TFile, BitField) . |
static void |
TVFS.sync(TFile tree,
FsSyncOption... options)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system with respect to the given options. |
static void |
TVFS.umount(TFile tree)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system, closes their associated target archive file in order to allow
access by third parties (e.g. other processes), cleans up any
temporary allocated resources (e.g. temporary files) and purges any
cached data. |
static void |
TFile.umount(TFile archive)
Deprecated.
As of TrueZIP 7.5, replaced by
TVFS.umount(TFile) . |
static void |
TFile.umount(TFile archive,
boolean forceCloseInputAndOutput)
Deprecated.
|
static void |
TFile.umount(TFile archive,
boolean waitCloseInput,
boolean forceCloseInput,
boolean waitCloseOutput,
boolean forceCloseOutput)
Deprecated.
Calling this method is equivalent to
TVFS.sync(archive,
BitField.of(FsSyncOption.CLEAR_CACHE)
.set(FsSyncOption.WAIT_CLOSE_INPUT, waitCloseInput)
.set(FsSyncOption.FORCE_CLOSE_INPUT, forceCloseInput)
.set(FsSyncOption.WAIT_CLOSE_OUTPUT, waitCloseOutput)
.set(FsSyncOption.FORCE_CLOSE_OUTPUT, forceCloseOutput))
. |
Constructor and Description |
---|
TFileReader(TFile file)
Constructs a new
TFile reader. |
TFileReader(TFile file,
CharsetDecoder decoder)
Constructs a new
TFile reader. |
TFileWriter(TFile file)
Constructs a new
TFile writer. |
TFileWriter(TFile file,
boolean append)
Constructs a new
TFile writer. |
TFileWriter(TFile file,
boolean append,
CharsetEncoder encoder)
Constructs a new
TFile writer. |
Modifier and Type | Method and Description |
---|---|
TFile |
TFileTreeModel.getChild(Object parent,
int index) |
TFile |
TFileChooser.getCurrentDirectory() |
TFile |
TFileTreeModel.getRoot() |
TFile |
TFileChooser.getSelectedFile() |
TFile[] |
TFileChooser.getSelectedFiles() |
protected TFile |
TFileSystemView.wrap(File file)
Ensures that the returned file object is an instance of
TFile . |
Modifier and Type | Method and Description |
---|---|
void |
TFileTreeModel.cp_p(TFile oldNode,
TFile node)
Copies
oldNode to node
preserving its last modification time
and updates the tree accordingly. |
void |
TFileTree.cp_p(TFile oldNode,
TFile node)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the copied node
is selected and visible. |
void |
TFileTreeModel.cp_r(TFile oldNode,
TFile node)
Copies
oldNode to node recursively
and updates the tree accordingly. |
void |
TFileTree.cp_r(TFile oldNode,
TFile node)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the recursively copied node
is selected and visible. |
void |
TFileTreeModel.cp_rp(TFile oldNode,
TFile node)
Copies
oldNode to node recursively
preserving its last modification time
and updates the tree accordingly. |
void |
TFileTree.cp_rp(TFile oldNode,
TFile node)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the recursively copied node
is selected and visible. |
void |
TFileTreeModel.cp(InputStream in,
TFile node)
Copies
in to node
and updates the tree accordingly. |
void |
TFileTree.cp(InputStream in,
TFile node)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the copied node
is selected and visible. |
void |
TFileTreeModel.cp(TFile oldNode,
TFile node)
Copies
oldNode to node
and updates the tree accordingly. |
void |
TFileTree.cp(TFile oldNode,
TFile node)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the copied node
is selected and visible. |
boolean |
TFileTreeModel.createNewFile(TFile node)
Creates
node as a new file in the file system
and updates the tree accordingly. |
boolean |
TFileTree.createNewFile(TFile node)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the newly created file
is selected and visible. |
void |
TFileTreeModel.mkdir(TFile node,
boolean recursive)
Ensures that
node exists as a (virtual) directory in the
(federated) file system and updates the tree accordingly. |
void |
TFileTree.mkdir(TFile node,
boolean recursive)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the newly created directory
is selected and visible. |
void |
TFileTreeModel.mv(TFile oldNode,
TFile node)
Moves
oldNode to node
and updates the tree accordingly. |
void |
TFileTree.mv(TFile oldNode,
TFile node)
Forwards the call to the
TFileTreeModel ,
restores the expanded paths, selects node and scrolls to
it if necessary. |
void |
TFileTreeModel.nodeChanged(TFile node)
Updates the given node in the tree.
|
void |
TFileTreeModel.nodeInserted(TFile node)
Inserts the given node in the tree.
|
void |
TFileTreeModel.nodeInsertedOrStructureChanged(TFile node)
Inserts the given node in the tree or reloads the tree structure for
the given node if it already exists.
|
void |
TFileTreeModel.nodeRemoved(TFile node)
Removes the given node from the tree.
|
void |
TFileTreeModel.refresh(TFile node)
Alias for
TFileTreeModel.structureChanged(TFile) . |
void |
TFileTree.refresh(TFile node)
Refreshes the subtree for the given node,
restores the expanded and selected paths and scrolls to the lead
selection path if necessary.
|
void |
TFileTreeModel.rm_r(TFile node)
Deletes the file or (probably not empty) directory
node
and updates the tree accordingly. |
void |
TFileTree.rm_r(TFile node)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the successor to the deleted node
is selected and visible. |
void |
TFileTreeModel.rm(TFile node)
Deletes the file or empty directory
node
and updates the tree accordingly. |
void |
TFileTree.rm(TFile node)
Forwards the call to the
TFileTreeModel
and scrolls the tree so that the successor to the deleted node
is selected and visible. |
void |
TFileTree.scrollNodeToVisible(TFile node) |
void |
TFileTree.setSelectionNode(TFile node) |
void |
TFileTree.setSelectionNodes(TFile[] nodes) |
void |
TFileTreeModel.structureChanged(TFile node)
Reloads the tree structure for the given node.
|
Constructor and Description |
---|
TFileChooser(TFile currentDirectory) |
TFileChooser(TFile currentDirectory,
TFileSystemView fileSystemView) |
TFileTree(TFile root)
Creates a new
TFileTree which traverses the given
root root file. |
TFileTreeModel(TFile root,
FileFilter filter,
Comparator<? super TFile> comparator)
Creates a new
TFileTreeModel which browses the specified
root file. |
Constructor and Description |
---|
TFileTreeModel(TFile root,
FileFilter filter,
Comparator<? super TFile> comparator)
Creates a new
TFileTreeModel which browses the specified
root file. |
Modifier and Type | Method and Description |
---|---|
TFile |
TPath.toFile()
Returns a new
TFile object for this path. |
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.