| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: the byte arraythe password characters passwordChars)Convert a char array to a byte array, in UTF-16 format. |
| protected String | |
| public String | getScheme()
Implements abstract org. Get the scheme (prefix) for this file provider. |
| 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 static void | |
| public long | |
| public FilePath | unwrap(String
the path including the scheme prefix fileName)Overrides org. Get the base path for the given wrapped path. |
| SCHEME | back to summary |
|---|---|
| private static final String SCHEME | |
| FilePathEncrypt | back to summary |
|---|---|
| public FilePathEncrypt() | |
| getPasswordBytes | back to summary |
|---|---|
| public static byte[] getPasswordBytes(char[] passwordChars) Convert a char array to a byte array, in UTF-16 format. The char array is not cleared after use (this must be done by the caller).
| |
| 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
| |
| 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 algorithm, password, and base file name. | |
| register | back to summary |
|---|---|
| public static void register() Register this file system. | |
| 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. | |