|
TrueZIP File* 7.0-rc1 | ||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Packages that use TFile | |
|---|---|
| de.schlichtherle.truezip.file | This package provides convenient multi-threaded read/write access to
archive files as if they were just plain old directories in a file
system path by means of the TFile* classes and their
dependent classes. |
| de.schlichtherle.truezip.file.swing | This package provides Swing GUI classes for viewing file trees, choosing entries in archive files or path name autocompletion in combo boxes. |
| Uses of TFile in de.schlichtherle.truezip.file |
|---|
| Fields in de.schlichtherle.truezip.file declared as TFile | |
|---|---|
private TFile |
TFile.enclArchive
|
private TFile |
TFile.innerArchive
|
| Methods in de.schlichtherle.truezip.file that return TFile | |
|---|---|
private static TFile[] |
TFile.convert(File[] files,
TArchiveDetector detector)
|
private TFile[] |
TFile.delegateListFiles(FileFilter 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 in this path. |
TFile |
TFile.getInnerArchive()
Returns the innermost archive file in this path. |
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 "." and ".." directories from the path name
wherever possible. |
TFile |
TFile.getParentFile()
|
TFile |
TFile.getTopLevelArchive()
Returns The top level archive file in the path or null
if this path does not denote an archive. |
TFile[] |
TFile.listFiles()
Equivalent to listFiles((FilenameFilter) null, getArchiveDetector()). |
TFile[] |
TFile.listFiles(FileFilter fileFilter)
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 filenameFilter)
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. |
| Methods in de.schlichtherle.truezip.file with parameters of type TFile | |
|---|---|
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)
Similar to sync(options),
but synchronizes only the given archive and all its member file
systems. |
static void |
TFile.umount(TFile archive)
Equivalent to sync(archive, BitField.of(FsController.UMOUNT))
. |
static void |
TFile.umount(TFile archive,
boolean closeStreams)
Equivalent to sync( archive,
BitField.of(FsSyncOption.CLEAR_CACHE)
.set(FsSyncOption.FORCE_CLOSE_INPUT, closeStreams)
.set(FsSyncOption.FORCE_CLOSE_OUTPUT, closeStreams))
. |
static void |
TFile.umount(TFile archive,
boolean waitForInputStreams,
boolean closeInputStreams,
boolean waitForOutputStreams,
boolean closeOutputStreams)
Equivalent to sync( archive,
BitField.of(FsSyncOption.CLEAR_CACHE)
.set(FsSyncOption.WAIT_CLOSE_INPUT, waitForInputStreams)
.set(FsSyncOption.FORCE_CLOSE_INPUT, closeInputStreams)
.set(FsSyncOption.WAIT_CLOSE_OUTPUT, waitForOutputStreams)
.set(FsSyncOption.FORCE_CLOSE_OUTPUT, closeOutputStreams))
. |
| Constructors in de.schlichtherle.truezip.file with parameters of type TFile | |
|---|---|
TFile(File delegate,
TFile innerArchive,
TArchiveDetector detector)
|
|
TFileReader(TFile file)
|
|
TFileWriter(TFile file)
|
|
TFileWriter(TFile file,
boolean append)
|
|
| Uses of TFile in de.schlichtherle.truezip.file.swing |
|---|
| Fields in de.schlichtherle.truezip.file.swing declared as TFile | |
|---|---|
private TFile |
TFileTree.editedNode
|
private TFile |
TFileTreeModel.root
|
| Fields in de.schlichtherle.truezip.file.swing with type parameters of type TFile | |
|---|---|
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. |
static Comparator<TFile> |
TFileTree.FILE_NAME_COMPARATOR
A comparator which sorts directory entries to the beginning. |
| Methods in de.schlichtherle.truezip.file.swing that return TFile | |
|---|---|
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 static TFile |
TFileView.newNonArchiveFile(TFile file)
|
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. |
| Methods in de.schlichtherle.truezip.file.swing with parameters of type TFile | |
|---|---|
boolean |
TFileTreeModel.archiveCopyAllTo(TFile oldNode,
TFile node)
Copies oldNode to node recursively, preserving
its last modification time
and updates the tree accordingly. |
boolean |
TFileTree.archiveCopyAllTo(TFile oldNode,
TFile node)
Forwards the call to the TFileTreeModel
and scrolls the tree so that the recursively copied node
is selected and visible. |
boolean |
TFileTreeModel.archiveCopyTo(TFile oldNode,
TFile node)
Copies oldNode to node, preserving
its last modification time
and updates the tree accordingly. |
boolean |
TFileTree.archiveCopyTo(TFile oldNode,
TFile node)
Forwards the call to the TFileTreeModel
and scrolls the tree so that the copied node
is selected and visible. |
int |
TFileTree.FileComparator.compare(TFile f1,
TFile f2)
|
boolean |
TFileTreeModel.copyAllTo(TFile oldNode,
TFile node)
Copies oldNode to node recursively
and updates the tree accordingly. |
boolean |
TFileTree.copyAllTo(TFile oldNode,
TFile node)
Forwards the call to the TFileTreeModel
and scrolls the tree so that the recursively copied node
is selected and visible. |
boolean |
TFileTreeModel.copyFrom(TFile node,
InputStream in)
Creates node as a new file with the contents read from
in and updates the tree accordingly. |
boolean |
TFileTree.copyFrom(TFile node,
InputStream in)
Forwards the call to the TFileTreeModel
and scrolls the tree so that the copied node
is selected and visible. |
boolean |
TFileTreeModel.copyTo(TFile oldNode,
TFile node)
Copies oldNode to node
and updates the tree accordingly. |
boolean |
TFileTree.copyTo(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. |
boolean |
TFileTreeModel.delete(TFile node)
Deletes the file or empty directory node
and updates the tree accordingly. |
boolean |
TFileTree.delete(TFile node)
Forwards the call to the TFileTreeModel
and scrolls the tree so that the successor to the deleted node
is selected and visible. |
boolean |
TFileTreeModel.deleteAll(TFile node)
Deletes the file or (probably not empty) directory node
and updates the tree accordingly. |
boolean |
TFileTree.deleteAll(TFile node)
Forwards the call to the TFileTreeModel
and scrolls the tree so that the successor to the deleted node
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 boolean |
TFileView.isEntryInTrueArchive(TFile file)
|
private static boolean |
TFileView.isTrueArchive(TFile file)
|
boolean |
TFileTreeModel.mkdir(TFile node)
Creates node as a new directory
and updates the tree accordingly. |
boolean |
TFileTree.mkdir(TFile node)
Forwards the call to the TFileTreeModel
and scrolls the tree so that the newly created directory
is selected and visible. |
boolean |
TFileTreeModel.mkdirs(TFile node)
Creates node as a new directory, including all parents,
and updates the tree accordingly. |
boolean |
TFileTree.mkdirs(TFile node)
Forwards the call to the TFileTreeModel
and scrolls the tree so that the newly created directory
is selected and visible. |
private static TFile |
TFileView.newNonArchiveFile(TFile file)
|
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)
Returns a new TreePath for the given node or
null if node is not part of this file tree or
is null. |
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. |
boolean |
TFileTreeModel.renameTo(TFile oldNode,
TFile newNode)
Renames oldNode to newNode
and updates the tree accordingly. |
boolean |
TFileTree.renameTo(TFile oldNode,
TFile node)
Forwards the call to the TFileTreeModel,
restores the expanded paths, selects node and scrolls to
it if necessary. |
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. |
| Constructors in de.schlichtherle.truezip.file.swing with parameters of type TFile | |
|---|---|
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 parameters in de.schlichtherle.truezip.file.swing with type arguments of type TFile | |
|---|---|
TFileTreeModel(TFile root,
FileFilter filter,
Comparator<? super TFile> comparator)
Creates a new TFileTreeModel which browses the specified
root file. |
|
|
TrueZIP File* 7.0-rc1 | ||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||