public class Files
extends java.lang.Object
| Constructor and Description |
|---|
Files(java.io.File file)
Initializes this object from the given file or directory.
|
Files(java.lang.Object[] desc)
Initializes this object from the given object array.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
diff(Files that) |
static java.lang.String |
diff(java.lang.String name,
java.lang.Object desc1,
java.lang.Object desc2) |
static java.lang.Object |
loadPlainFile(java.io.File file) |
void |
save(java.io.File file)
Creates the directory tree in the file system.
|
public Files(java.lang.Object[] desc)
public Files(java.io.File file)
throws java.io.IOException,
org.apache.commons.compress.archivers.ArchiveException,
org.apache.commons.compress.compressors.CompressorException
java.io.IOExceptionorg.apache.commons.compress.archivers.ArchiveExceptionorg.apache.commons.compress.compressors.CompressorException@Nullable public java.lang.String diff(Files that)
null if this and that are equal, or a human-readable text that describes the
first difference between this and that@Nullable public static java.lang.String diff(java.lang.String name, java.lang.Object desc1, java.lang.Object desc2)
name - Is included in the return valuenull if desc1 and desc2 are equal, or a human-readable text that describes
the first difference between desc1 and desc2public void save(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Object loadPlainFile(java.io.File file)
throws java.io.IOException
file's contents; lines separated with '\n'java.io.IOException