| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | createDirectory()
Implements abstract org. Create a directory (all required parent directories already exist). |
| public boolean | |
| public FilePath | createTempFile(String
the suffix suffix, boolean if the file should be stored in the temporary directory inTempDir)Overrides org. Create a new temporary file. |
| public void | delete()
Implements abstract org. Delete a file or directory if it exists. |
| public boolean | |
| public static String | Returns: the native file namethe file name fileName)Expand '~' to the user home directory. |
| pack-priv static void | |
| public FilePath | getParent()
Implements abstract org. Get the parent directory of a file or directory. |
| public FilePathDisk | 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. |
| 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 InputStream | newInputStream()
Overrides org. Create an input stream to read from the file. |
| public OutputStream | newOutputStream(boolean
if true, the file will grow, if false, the file will be
truncated first append)Overrides org. Create an output stream to write into the file. |
| public FileChannel | open(String
the access mode. Supported are r, rw, rws, rwd mode)Implements abstract org. Open a random access file object. |
| private static Path | |
| public boolean | setReadOnly()
Implements abstract org. Disable the ability to write. |
| public long | |
| public FilePathDisk | |
| private static Path | |
| protected static String | Returns: the native file namethe file name fileName)Translate the file name to the native format. |
| private static void |
| CLASSPATH_PREFIX | back to summary |
|---|---|
| private static final String CLASSPATH_PREFIX | |
| FilePathDisk | back to summary |
|---|---|
| public FilePathDisk() | |
| canWrite | back to summary |
|---|---|
| public boolean canWrite() Implements abstract org. Doc from org. Check if the file is writable.
| |
| 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.
| |
| createTempFile | back to summary |
|---|---|
| public FilePath createTempFile(String suffix, boolean inTempDir) throws IOException Overrides org. Doc from org. Create a new temporary 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.
| |
| expandUserHomeDirectory | back to summary |
|---|---|
| public static String expandUserHomeDirectory(String fileName) Expand '~' to the user home directory. It is only be expanded if the '~' stands alone, or is followed by '/' or '\'. | |
| freeMemoryAndFinalize | back to summary |
|---|---|
| pack-priv static void freeMemoryAndFinalize() Call the garbage collection and run finalization. This close all files that were not closed, and are no longer referenced. | |
| getParent | back to summary |
|---|---|
| public FilePath getParent() Implements abstract org. Doc from org. Get the parent directory of a file or directory. | |
| getPath | back to summary |
|---|---|
| public FilePathDisk 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.
| |
| 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. | |
| newInputStream | back to summary |
|---|---|
| public InputStream newInputStream() throws IOException Overrides org. Doc from org. Create an input stream to read from the file.
| |
| newOutputStream | back to summary |
|---|---|
| public OutputStream newOutputStream(boolean append) throws IOException Overrides org. Doc from org. Create an output stream to write into the file.
| |
| open | back to summary |
|---|---|
| public FileChannel open(String mode) throws IOException Implements abstract org. Doc from org. Open a random access file object.
| |
| parentToRealPath | back to summary |
|---|---|
| private static Path parentToRealPath(Path path) | |
| 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 FilePathDisk toRealPath() Implements abstract org. Doc from org. Normalize a file name.
| |
| toRealPath | back to summary |
|---|---|
| private static Path toRealPath(Path path) | |
| translateFileName | back to summary |
|---|---|
| protected static String translateFileName(String fileName) Translate the file name to the native format. This will replace '\' with '/' and expand the home directory ('~'). | |
| wait | back to summary |
|---|---|
| private static void wait(int i) | |