| Modifier and Type | Field and Description |
|---|---|
| private FilePath |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| private FilePathWrapper | |
| 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 | |
| protected FilePath | |
| public FilePath | getParent()
Implements abstract org. Get the parent directory of a file or directory. |
| public FilePathWrapper | getPath(String
the path path)Implements abstract org. Convert a file to a path. |
| protected String | |
| 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. |
| public boolean | setReadOnly()
Implements abstract org. Disable the ability to write. |
| public long | |
| public FilePath | |
| public FilePath | unwrap()
Overrides org. Get the unwrapped file name (without wrapper prefixes if wrapping / delegating file systems are used). |
| protected FilePath | |
| public FilePathWrapper |
| base | back to summary |
|---|---|
| private FilePath base | |
| FilePathWrapper | back to summary |
|---|---|
| public FilePathWrapper() | |
| canWrite | back to summary |
|---|---|
| public boolean canWrite() Implements abstract org. Doc from org. Check if the file is writable.
| |
| create | back to summary |
|---|---|
| private FilePathWrapper create(String path, FilePath base) | |
| 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.
| |
| getBase | back to summary |
|---|---|
| protected FilePath getBase() | |
| 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 FilePathWrapper getPath(String path) Implements abstract org. Doc from org. Convert a file to a path. This is similar to
| |
| getPrefix | back to summary |
|---|---|
| protected String getPrefix() | |
| 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.
| |
| 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. | |
| 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). | |
| unwrap | back to summary |
|---|---|
| protected FilePath unwrap(String path) Get the base path for the given wrapped path. | |
| wrap | back to summary |
|---|---|
| public FilePathWrapper wrap(FilePath base) Create a wrapped path instance for the given base path.
| |