@ThreadSafe public abstract static class OutputStore.ReadyDirectory extends File
Modifier and Type | Field and Description |
---|---|
static char |
STATUS_FLAG_MOUNTED
The flag character for a ready directory that is mounted.
|
static char |
STATUS_FLAG_REPORTED
The flag character for a ready directory that is currently reported.
|
static int |
STATUS_FLAGS_COUNT
The number of distinct status flags,
STATUS_FLAG_* . |
pathSeparator, pathSeparatorChar, separator, separatorChar
Modifier | Constructor and Description |
---|---|
protected |
OutputStore.ReadyDirectory(File file)
Constructs a ReadyDirectory from a abstract (File) pathname.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isMounted()
Answers whether the store is nominally mounted.
|
File |
snapDirectory()
The parent directory, containing the entire snapshot.
|
static void |
statusPrintln(StringBuilder flagB,
File nominalDirectory)
Prints to standard output the status flags of a directory, its nominal path,
and a new line.
|
void |
statusPrintln(StringBuilder flagB,
File nominalReadyDirectory,
File readyDirectoryToReportOrNull)
Prints to standard output the status flags of this ready directory, its
nominal path, and a new line.
|
String |
toUIString()
Returns a short identifier intended for presenting to users, using a separator of
" / " (space, slash, space).
|
String |
toUIString(String separator)
Returns a short identifier intended for presenting to users.
|
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 STATUS_FLAGS_COUNT
STATUS_FLAG_*
.public static final char STATUS_FLAG_MOUNTED
public static final char STATUS_FLAG_REPORTED
protected OutputStore.ReadyDirectory(File file) throws IOException
file
- the abstract pathname, which will be converted to canonical
form if it is non-canonical.FileNotFoundException
- if no directory exists at the specified
pathname.IOException
public abstract boolean isMounted()
public final File snapDirectory()
public final void statusPrintln(StringBuilder flagB, File nominalReadyDirectory, File readyDirectoryToReportOrNull)
flagB
- a buffer for storing the flag characters,
which is not cleared hereinnominalReadyDirectory
- the nominal path of this ready directory,
which may differ from the canonical pathreadyDirectoryToReportOrNull
- the currently reported ready directory,
if any is currently reportedpublic static void statusPrintln(StringBuilder flagB, File nominalDirectory)
flagB
- a buffer of flag charactersnominalDirectory
- the nominal path of the directory,
which may differ from its canonical pathpublic final String toUIString()
public final String toUIString(String separator)
separator
- the string to separate parent and child file names