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.kernel.spec |
Defines the API for accessing the (federated virtual) file system space.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TFile.canExecute() |
boolean |
TFile.canRead() |
boolean |
TFile.canWrite() |
static void |
TFile.cat(InputStream in,
OutputStream out)
Copies the data from the given input stream to the given output stream
without closing them.
|
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) . |
static void |
TFile.cp_p(File src,
File dst)
Copies the file
src to the file dst and attempts to
copy all attributes of the source file to the destination file, too. |
TFile |
TFile.cp_r(File dst)
Equivalent to
cp_r(this, dst, detector, detector) ,
where detector is TConfig.current().getArchiveDetector() . |
static void |
TFile.cp_r(File src,
File dst,
TArchiveDetector detector)
Equivalent to
cp_r(this, dst, detector, detector) . |
static void |
TFile.cp_r(File src,
File dst,
TArchiveDetector srcDetector,
TArchiveDetector dstDetector)
Recursively copies the file or directory
src
to the file or directory dst . |
TFile |
TFile.cp_rp(File dst)
Equivalent to
cp_rp(this, dst, detector, detector) ,
where detector is TConfig.current().getArchiveDetector() . |
static void |
TFile.cp_rp(File src,
File dst,
TArchiveDetector detector)
Equivalent to
cp_rp(this, dst, detector, detector) . |
static void |
TFile.cp_rp(File src,
File dst,
TArchiveDetector srcDetector,
TArchiveDetector dstDetector)
Recursively copies the file or directory
src to the file or
directory dst and attempts to copy all attributes of each
source file to the destination file, too. |
TFile |
TFile.cp(File dst)
Equivalent to
cp(this, dst) . |
static void |
TFile.cp(File src,
File dst)
Copies the file
src to the file dst . |
static void |
TFile.cp(File src,
OutputStream out)
Copies the file
src to the output stream out and
closes the stream - even if an exception occurs. |
static void |
TFile.cp(InputStream in,
File dst)
Copies the input stream
in to the file dst and
closes the stream - even if an exception occurs. |
static void |
TFile.cp(InputStream in,
OutputStream out)
Copies the data from the input stream
in to the output stream
out and closes both streams - even if an exception occurs. |
boolean |
TFile.createNewFile()
Creates a new, empty file similar to its superclass implementation.
|
boolean |
TFile.delete()
Deprecated.
This method just returns a boolean value to indicate failure,
which is hard to analyze.
|
void |
TFile.deleteOnExit() |
boolean |
TFile.exists() |
TFile |
TFile.getCanonicalFile() |
String |
TFile.getCanonicalPath() |
void |
TFile.input(InputStream in)
Copies the input stream
in to this file or entry in an archive
file
without closing the stream. |
boolean |
TFile.isDirectory()
Similar to its super class implementation, but returns
true for a valid archive file, too. |
boolean |
TFile.isFile()
Similar to its super class implementation, but returns
false for a valid archive file, too. |
long |
TFile.lastModified()
Returns a
long value representing the time this file was
last modified, measured in milliseconds since the epoch (00:00:00 GMT,
January 1, 1970), or 0L if the file does not exist or if an
I/O error occurs or if this is a ghost directory in an archive file. |
long |
TFile.length()
Returns the (uncompressed) length of the file.
|
String[] |
TFile.list()
Returns the names of the members in this (virtual) directory in a newly
created array.
|
String[] |
TFile.list(FilenameFilter filter)
Returns the names of the members in this directory which are
accepted by
filenameFilter in a newly created array. |
TFile[] |
TFile.listFiles() |
TFile[] |
TFile.listFiles(FileFilter filter) |
TFile[] |
TFile.listFiles(FilenameFilter filter) |
boolean |
TFile.mkdir()
Creates a new, empty (virtual) directory similar to its superclass
implementation.
|
TFile |
TFile.mkdir(boolean recursive)
Ensures that a (virtual) directory with
this path name
exists in the (federated) file system. |
boolean |
TFile.mkdirs() |
TFile |
TFile.mv(File dst)
|
static void |
TFile.mv(File src,
File dst,
TArchiveDetector detector)
Moves the given source file or directory to the given destination file
or directory.
|
void |
TFile.output(OutputStream out)
Copies this file or entry in an archive file to the output stream
out
without closing the stream. |
boolean |
TFile.renameTo(File dst)
Deprecated.
This method just returns a boolean value to indicate failure,
which is hard to analyze.
|
TFile |
TFile.rm_r()
Equivalent to
rm_r(this) . |
static void |
TFile.rm_r(File file)
Recursively deletes the given file or directory tree.
|
TFile |
TFile.rm()
Equivalent to
rm(this) . |
static void |
TFile.rm(File file)
Deletes the given file or directory.
|
boolean |
TFile.setLastModified(long time)
Sets the last modification of this file or (virtual) directory.
|
boolean |
TFile.setReadOnly()
Like the super class implementation, but is aware of archive
files in its path.
|
Modifier and Type | Method and Description |
---|---|
void |
FsController.checkAccess(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name,
net.java.truecommons.shed.BitField<net.java.truecommons.cio.Entry.Access> types)
Checks if the file system node for the given
name exists when
constrained by the given access options and permits the given
access types . |
net.java.truecommons.cio.InputSocket<? extends net.java.truecommons.cio.Entry> |
FsController.input(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name)
Returns an input socket for reading the contents of the file system
node addressed by the given name from the file system.
|
void |
FsController.make(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name,
net.java.truecommons.cio.Entry.Type type,
net.java.truecommons.cio.Entry template)
Creates or replaces and finally links a chain of one or more entries
for the given node
name into the file system. |
FsNode |
FsController.node(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name)
Returns the file system node for the given
name or null
if it doesn't exist. |
net.java.truecommons.cio.OutputSocket<? extends net.java.truecommons.cio.Entry> |
FsController.output(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name,
net.java.truecommons.cio.Entry template)
Returns an output socket for writing the contents of the node addressed
by the given name to the file system.
|
void |
FsController.setReadOnly(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name)
Sets the named file system node as read-only.
|
boolean |
FsController.setTime(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name,
net.java.truecommons.shed.BitField<net.java.truecommons.cio.Entry.Access> types,
long value)
Makes an attempt to set the last access time of all types in the given
bit field for the file system node with the given name.
|
boolean |
FsController.setTime(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name,
Map<net.java.truecommons.cio.Entry.Access,Long> times)
Makes an attempt to set the last access time of all types in the given
map for the file system node with the given name.
|
void |
FsController.sync(net.java.truecommons.shed.BitField<FsSyncOption> options)
Commits all unsynchronized changes to the contents of this file system
to its parent file system,
releases the associated resources (e.g.
|
void |
FsController.unlink(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name)
Removes the named file system node from the file system.
|
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.