| Modifier and Type | Field and Description |
|---|---|
| private static final FileMemData | |
| private static final TreeMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| pack-priv boolean | |
| public void | createDirectory()
Implements abstract org. Create a directory (all required parent directories already exist). |
| public boolean | |
| public void | delete()
Implements abstract org. Delete a file or directory if it exists. |
| public boolean | |
| protected static String | Returns: the canonical paththe file name fileName)Get the canonical path for this file name. |
| private FileMemData | |
| public FilePathMem | getParent()
Implements abstract org. Get the parent directory of a file or directory. |
| public FilePathMem | getPath(String
the path path)Implements abstract org. Convert a file to a path. |
| public String | getScheme()
Implements abstract org. Get the scheme (prefix) for this file provider. |
| public boolean | isAbsolute()
Implements abstract org. Check if the file name includes a path. |
| public boolean | isDirectory()
Implements abstract org. Check if it is a file or a directory. |
| public boolean | isRegularFile()
Implements abstract org. Check if it is a regular file. |
| private boolean | |
| public long | lastModified()
Implements abstract org. Get the last modified date of a file |
| public void | moveTo(FilePath
the new fully qualified file name newName, boolean whether the move should be atomic, and the target
file should be replaced if it exists and replacing is possible atomicReplace)Implements abstract org. Rename a file if this is allowed. |
| public List | newDirectoryStream()
Implements abstract org. List the files and directories in the given directory. |
| public FileChannel | open(String
the access mode. Supported are r, rw, rws, rwd mode)Implements abstract org. Open a random access file object. |
| public boolean | setReadOnly()
Implements abstract org. Disable the ability to write. |
| public long | |
| public FilePathMem |
| DIRECTORY | back to summary |
|---|---|
| private static final FileMemData DIRECTORY | |
| MEMORY_FILES | back to summary |
|---|---|
| private static final TreeMap<String, FileMemData> MEMORY_FILES | |
| FilePathMem | back to summary |
|---|---|
| public FilePathMem() | |
| canWrite | back to summary |
|---|---|
| public boolean canWrite() Implements abstract org. Doc from org. Check if the file is writable.
| |
| compressed | back to summary |
|---|---|
| pack-priv boolean compressed() Whether the file should be compressed.
| |
| createDirectory | back to summary |
|---|---|
| public void createDirectory() Implements abstract org. Doc from org. Create a directory (all required parent directories already exist).
| |
| createFile | back to summary |
|---|---|
| public boolean createFile() Implements abstract org. Doc from org. Create a new file.
| |
| delete | back to summary |
|---|---|
| public void delete() Implements abstract org. Doc from org. Delete a file or directory if it exists. Directories may only be deleted if they are empty.
| |
| exists | back to summary |
|---|---|
| public boolean exists() Implements abstract org. Doc from org. Checks if a file exists.
| |
| getCanonicalPath | back to summary |
|---|---|
| protected static String getCanonicalPath(String fileName) Get the canonical path for this file name. | |
| getMemoryFile | back to summary |
|---|---|
| private FileMemData getMemoryFile() | |
| getParent | back to summary |
|---|---|
| public FilePathMem getParent() Implements abstract org. Doc from org. Get the parent directory of a file or directory.
| |
| getPath | back to summary |
|---|---|
| public FilePathMem getPath(String path) Implements abstract org. Doc from org. Convert a file to a path. This is similar to
| |
| getScheme | back to summary |
|---|---|
| public String getScheme() Implements abstract org. Doc from org. Get the scheme (prefix) for this file provider.
This is similar to
| |
| isAbsolute | back to summary |
|---|---|
| public boolean isAbsolute() Implements abstract org. Doc from org. Check if the file name includes a path.
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements abstract org. Doc from org. Check if it is a file or a directory.
| |
| isRegularFile | back to summary |
|---|---|
| public boolean isRegularFile() Implements abstract org. Doc from org. Check if it is a regular file.
| |
| isRoot | back to summary |
|---|---|
| private boolean isRoot() | |
| lastModified | back to summary |
|---|---|
| public long lastModified() Implements abstract org. Doc from org. Get the last modified date of a file
| |
| moveTo | back to summary |
|---|---|
| public void moveTo(FilePath newName, boolean atomicReplace) Implements abstract org. Doc from org. Rename a file if this is allowed. | |
| newDirectoryStream | back to summary |
|---|---|
| public List Implements abstract org. Doc from org. List the files and directories in the given directory. | |
| open | back to summary |
|---|---|
| public FileChannel open(String mode) Implements abstract org. Doc from org. Open a random access file object.
| |
| setReadOnly | back to summary |
|---|---|
| public boolean setReadOnly() Implements abstract org. Doc from org. Disable the ability to write.
| |
| size | back to summary |
|---|---|
| public long size() Implements abstract org. Doc from org. Get the size of a file in bytes
| |
| toRealPath | back to summary |
|---|---|
| public FilePathMem toRealPath() Implements abstract org. Doc from org. Normalize a file name.
| |