Package | Description |
---|---|
net.java.truevfs.access |
Provides uniform, transparent, thread-safe, read/write access to archive
files as if they were virtual directories.
|
net.java.truevfs.access.swing |
Provides Swing GUI classes for viewing file trees and choosing entries in
archive files.
|
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, detector, detector) ,
where detector is TConfig.current().getArchiveDetector() . |
TFile |
TFile.cp_rp(File dst)
Equivalent to
cp_rp(this, dst, detector, detector) ,
where detector is TConfig.current().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 parent file system 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() |
TFile[] |
TFile.listFiles(FileFilter filter) |
TFile[] |
TFile.listFiles(FilenameFilter filter) |
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)
|
TFile |
TFile.rm_r()
Equivalent to
rm_r(this) . |
TFile |
TFile.rm()
Equivalent to
rm(this) . |
TFile |
TRex.toFile()
Returns a file representation of this object.
|
TFile |
TPath.toFile()
Returns a new
TFile object for this path. |
TFile |
TFile.toFile() |
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,
net.java.truecommons.shed.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 |
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. |
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. |
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.