| 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.
|
| Modifier and Type | Field and Description |
|---|---|
private TFile |
TFile.enclArchive |
private TFile |
TFile.innerArchive |
| 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). |
private TFile[] |
TFile.filter(Collection<String> members,
FileFilter filter,
TArchiveDetector detector) |
private TFile[] |
TFile.filter(Collection<String> members,
FilenameFilter filter,
TArchiveDetector detector) |
private TFile[] |
TFile.filter(String[] members,
FilenameFilter filter,
TArchiveDetector detector) |
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.
|
(package private) TFile |
TFile.getNonArchiveFile() |
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). |
| Modifier and Type | Method and Description |
|---|---|
private static void |
TFile.compact(TFile grown) |
private static String |
TFile.getSuffix(TFile file) |
private void |
TFile.scan(TFile ancestor)
Initialize this file object by scanning its path for archive
files, using the given
ancestor file (i.e. a direct or
indirect parent file) if any. |
private void |
TFile.scan(TFile ancestor,
TArchiveDetector detector,
int skip,
String path,
StringBuilder enclEntryNameBuf,
Paths.Splitter splitter) |
static void |
TFile.sync(TFile archive,
BitField<FsSyncOption> options)
Commits all unsynchronized changes to the contents of the federated file
system (i.e. prospective archive files) identified by
archive
and all its member federated file systems to their respective parent
file system, releases the associated resources (i.e. target archive
files) for 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)
Commits all unsynchronized changes to the contents of the federated file
system (i.e. prospective archive files) identified by
archive
and all its member federated file systems to their respective parent
system, releases the associated resources (i.e. target archive files)
for 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,
boolean forceCloseInputAndOutput)
Commits all unsynchronized changes to the contents of the federated file
system (i.e. prospective archive files) identified by
archive
and all its member federated file systems to their respective parent
system, releases the associated resources (i.e. target archive files)
for 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,
boolean waitCloseInput,
boolean forceCloseInput,
boolean waitCloseOutput,
boolean forceCloseOutput)
Commits all unsynchronized changes to the contents of the federated file
system (i.e. prospective archive files) identified by
archive
and all its member federated file systems to their respective parent
system, releases the associated resources (i.e. target archive files)
for access by third parties (e.g. other processes), cleans up any
temporary allocated resources (e.g. temporary files) and purges any
cached data. |
| Constructor and Description |
|---|
TFile(File delegate,
TFile innerArchive,
TArchiveDetector detector) |
TFileReader(TFile file) |
TFileReader(TFile file,
CharsetDecoder decoder) |
TFileWriter(TFile file) |
TFileWriter(TFile file,
boolean append) |
TFileWriter(TFile file,
boolean append,
CharsetEncoder encoder) |
| Modifier and Type | Field and Description |
|---|---|
private TFile |
TFileTree.editedNode |
private TFile |
TFileTreeModel.root |
| Modifier and Type | Field and Description |
|---|---|
private Map<TFile,TFile[]> |
TFileTreeModel.cache
Used to cache the contents of directories.
|
private Comparator<? super TFile> |
TFileTreeModel.comparator
A comparator for
TFile or super classes. |
| Modifier and Type | Method and Description |
|---|---|
TFile |
TFileTreeModel.getChild(Object parent,
int index) |
private TFile[] |
TFileTreeModel.getChildren(TFile parent) |
TFile |
TFileChooser.getCurrentDirectory() |
(package private) TFile |
TFileTree.getEditedNode()
Returns the node that is currently edited, if any.
|
TFile |
TFileTreeModel.getRoot() |
TFile |
TFileChooser.getSelectedFile() |
TFile[] |
TFileChooser.getSelectedFiles() |
private TFile[] |
TFileTreeModel.newPath(TFile node)
Returns an array of
TFile objects indicating the path
from the root to the given node. |
private TFile[] |
TFileTreeModel.newPath(TFile node,
int level) |
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. |
(package private) void |
TFileTreeModel.forget(TFile node)
Clears the internal cache associated with
node and all
of its children. |
private void |
TFileTreeModel.forget(TFile node,
boolean childrenToo)
Clears the internal cache associated with
node. |
private TFile[] |
TFileTreeModel.getChildren(TFile parent) |
private static Icon |
TFileView.icon(TFile file) |
private static boolean |
TFileView.isTrueArchive(TFile file) |
private static boolean |
TFileView.isTrueEntry(TFile file) |
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. |
private TFile[] |
TFileTreeModel.newPath(TFile node)
Returns an array of
TFile objects indicating the path
from the root to the given node. |
private TFile[] |
TFileTreeModel.newPath(TFile node,
int level) |
(package private) TreePath |
TFileTreeModel.newTreePath(TFile node)
|
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.
|
private static String |
TFileView.typeDescription(TFile file) |
| 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 © 2004-2011 Schlichtherle IT Services. All Rights Reserved.