|
TrueZIP File* 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.file.TIO
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) @Immutable final class TIO
Provides fast bulk I/O operations for Files and TFiles.
Note that in contrast to the TFile class, the methods in this
class accept plain old File objects.
However, full advantage is taken if a parameter is a TFile object.
| Field Summary | |
|---|---|
(package private) static FsManager |
MANAGER
The file system manager to use within this package. |
| Constructor Summary | |
|---|---|
private |
TIO()
You cannot instantiate this class. |
| Method Summary | |
|---|---|
static boolean |
contains(File a,
File b)
Returns true if and only if the path represented by a
contains the path represented by b, where a path is said to
contain another path if and only if it is equal or a parent of the other
path. |
static void |
copy(boolean preserve,
File src,
File dst)
Copies a single source file to a destination file. |
private static void |
copy0(boolean preserve,
File src,
File dst)
Unchecked parameters version. |
static void |
copyAll(boolean preserve,
File src,
File dst,
TArchiveDetector srcDetector,
TArchiveDetector dstDetector)
Recursively copies the source directory tree or file to the destination directory tree or file. |
private static void |
copyAll0(boolean preserve,
File src,
File dst,
TArchiveDetector srcDetector,
TArchiveDetector dstDetector)
Unchecked parameters version. |
static void |
deleteAll(File node)
Recursively deletes the given directory tree or file. |
(package private) static InputSocket<?> |
getInputSocket(File src,
BitField<FsInputOption> options)
|
(package private) static OutputSocket<?> |
getOutputSocket(File dst,
BitField<FsOutputOption> options,
Entry template)
|
static void |
moveAll(File src,
File dst,
TArchiveDetector detector)
Moves the source directory tree or file to the destination directory tree or file by recursively applying copy-then-delete. |
private static void |
moveAll0(File src,
File dst,
TArchiveDetector detector)
Unchecked parameters version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final FsManager MANAGER
| Constructor Detail |
|---|
private TIO()
| Method Detail |
|---|
public static void moveAll(File src,
File dst,
TArchiveDetector detector)
throws IOException
src - the source directory tree or file.
This file system entity needs to exist.dst - the destination directory tree or file.
This file systeme entity may or may not exist.
If it does, its contents are overwritten.detector - the object used to detect any archive files in the
source and destination paths.
IOException - if the source path contains the destination path
or an elementary operation fails for any reason.
private static void moveAll0(File src,
File dst,
TArchiveDetector detector)
throws IOException
IOException
public static void copyAll(boolean preserve,
File src,
File dst,
TArchiveDetector srcDetector,
TArchiveDetector dstDetector)
throws IOException
preserve - if an elementary copy operation shall copy as much
properties of the source file to the destination file, too.
Currently, only the last modification time is preserved.
Note that this property set may get extended over time.src - the source directory tree or file.
This file system entity needs to exist.dst - the destination directory tree or file.
This file systeme entity may or may not exist.
If it does, its contents are overwritten.srcDetector - the object used to detect any archive files in the
source path.dstDetector - the object used to detect any archive files in the
destination path.
IOException - if the source path contains the destination path
or an elementary operation fails for any reason.
private static void copyAll0(boolean preserve,
File src,
File dst,
TArchiveDetector srcDetector,
TArchiveDetector dstDetector)
throws IOException
IOException
public static void copy(boolean preserve,
File src,
File dst)
throws IOException
copy.
preserve - if an elementary copy operation shall copy as much
properties of the source file to the destination file, too.
Currently, only the last modification time is preserved.
Note that this property set may get extended over time.src - the source file.
This file system entity needs to exist.dst - the destination file.
This file systeme entity may or may not exist.
If it does, its contents are overwritten.
IOException - if the source path contains the destination path
or an elementary operation fails for any reason.
private static void copy0(boolean preserve,
File src,
File dst)
throws IOException
IOException
static InputSocket<?> getInputSocket(File src,
BitField<FsInputOption> options)
static OutputSocket<?> getOutputSocket(File dst,
BitField<FsOutputOption> options,
@CheckForNull
Entry template)
public static void deleteAll(File node)
throws IOException
node - the directory tree or file to delete recursively.
IOException - if an elementary operation fails for any reason.
public static boolean contains(File a,
File b)
true if and only if the path represented by a
contains the path represented by b, where a path is said to
contain another path if and only if it is equal or a parent of the other
path.
Note that this method uses the absolute path of both files as if by
calling File.getAbsolutePath().
a - a file.b - another file.
|
TrueZIP File* 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||