| 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 | |
| private String | |
| public FilePath | getParent()
Implements abstract org. Get the parent directory of a file or directory. |
| public FilePathZip | 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 ArrayList | newDirectoryStream()
Implements abstract org. List the files and directories in the given directory. |
| 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 ZipFile | |
| public boolean | setReadOnly()
Implements abstract org. Disable the ability to write. |
| public long | |
| public FilePath | |
| private static String | |
| public FilePath | unwrap()
Overrides org. Get the unwrapped file name (without wrapper prefixes if wrapping / delegating file systems are used). |
| FilePathZip | back to summary |
|---|---|
| public FilePathZip() | |
| 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.
| |
| getEntryName | back to summary |
|---|---|
| private String getEntryName() | |
| 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 FilePathZip 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.
| |
| isRegularOrDirectory | back to summary |
|---|---|
| private boolean isRegularOrDirectory(boolean directory) | |
| 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 ArrayList Implements abstract org. Doc from org. List the files and directories in the given directory. | |
| 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.
| |
| openZipFile | back to summary |
|---|---|
| private ZipFile openZipFile() throws IOException | |
| 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 FilePath toRealPath() Implements abstract org. Doc from org. Normalize a file name. | |
| translateFileName | back to summary |
|---|---|
| private static String translateFileName(String fileName) | |
| unwrap | back to summary |
|---|---|
| public FilePath unwrap() Overrides org. Doc from org. Get the unwrapped file name (without wrapper prefixes if wrapping / delegating file systems are used). | |