public final class Directory extends java.io.File implements TrueStatic
A simple inheritor of standard java.io.File
for representing directories. Also contains some static methods
for manipulating directories in addition to standard
java.io.File
methods.
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG_LEVEL
The global property returned by
GlobalProperties.getClassDebugLevel(Directory.class) call:
if it contains positive value, this class will print some debug information
(by Out.println(String) calls). |
Constructor and Description |
---|
Directory(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
static Directory |
createTempDirectory(java.lang.String prefix,
java.lang.String suffix) |
static Directory |
createTempDirectory(java.lang.String prefix,
java.lang.String suffix,
java.io.File directory) |
static java.io.File |
tempDirectory() |
static java.io.File |
valueOf(java.io.File file) |
static java.io.File |
valueOf(java.lang.String path) |
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public static final int DEBUG_LEVEL
GlobalProperties.getClassDebugLevel(Directory.class)
call:
if it contains positive value, this class will print some debug information
(by Out.println(String)
calls).public Directory(java.lang.String path) throws java.lang.IllegalArgumentException
path
- java.lang.IllegalArgumentException
public static java.io.File valueOf(java.io.File file)
public static java.io.File valueOf(java.lang.String path)
public static java.io.File tempDirectory()
public static Directory createTempDirectory(java.lang.String prefix, java.lang.String suffix) throws java.io.IOException
java.io.IOException
public static Directory createTempDirectory(java.lang.String prefix, java.lang.String suffix, java.io.File directory) throws java.io.IOException
java.io.IOException