| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| pack-priv FilePath | Returns: the file name including the part idthe part id id)Get the file name of a part file. |
| private long | |
| private String | |
| protected String | |
| public String | getScheme()
Implements abstract org. Get the scheme (prefix) for this file provider. |
| public long | lastModified()
Overrides org. Get the last modified date of a file |
| public void | moveTo(FilePath
the new fully qualified file name path, boolean whether the move should be atomic, and the target
file should be replaced if it exists and replacing is possible atomicReplace)Overrides org. Rename a file if this is allowed. |
| public ArrayList | newDirectoryStream()
Overrides 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)Overrides org. Open a random access file object. |
| private String[] | |
| public boolean | |
| public long | |
| public FilePath | unwrap(String
the path including the scheme prefix fileName)Overrides org. Get the base path for the given wrapped path. |
| PART_SUFFIX | back to summary |
|---|---|
| private static final String PART_SUFFIX | |
| FilePathSplit | back to summary |
|---|---|
| public FilePathSplit() | |
| closeAndThrow | back to summary |
|---|---|
| private void closeAndThrow(int id, FileChannel[] array, FileChannel o, long maxLength) throws IOException | |
| delete | back to summary |
|---|---|
| public void delete() Overrides org. Doc from org. Delete a file or directory if it exists. Directories may only be deleted if they are empty.
| |
| getBase | back to summary |
|---|---|
| pack-priv FilePath getBase(int id) Get the file name of a part file.
| |
| getDefaultMaxLength | back to summary |
|---|---|
| private long getDefaultMaxLength() | |
| getName | back to summary |
|---|---|
| private String getName(int id) | |
| getPrefix | back to summary |
|---|---|
| protected String getPrefix() Overrides org.
| |
| 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
| |
| lastModified | back to summary |
|---|---|
| public long lastModified() Overrides org. Doc from org. Get the last modified date of a file
| |
| moveTo | back to summary |
|---|---|
| public void moveTo(FilePath path, boolean atomicReplace) Overrides org. Doc from org. Rename a file if this is allowed. | |
| newDirectoryStream | back to summary |
|---|---|
| public ArrayList Overrides 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 Overrides org. Doc from org. Open a random access file object.
| |
| parse | back to summary |
|---|---|
| private String[] parse(String fileName) Split the file name into size and base file name. | |
| setReadOnly | back to summary |
|---|---|
| public boolean setReadOnly() Overrides org. Doc from org. Disable the ability to write.
| |
| size | back to summary |
|---|---|
| public long size() Overrides org. Doc from org. Get the size of a file in bytes
| |
| unwrap | back to summary |
|---|---|
| public FilePath unwrap(String fileName) Overrides org. Doc from org. Get the base path for the given wrapped path. | |