|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.store.fs.FilePath
org.h2.store.fs.FilePathWrapper
org.h2.dev.fs.FilePathCrypt
public class FilePathCrypt
A file system that encrypts the contents of the files.
Field Summary |
---|
Fields inherited from class org.h2.store.fs.FilePath |
---|
name |
Constructor Summary | |
---|---|
FilePathCrypt()
|
Method Summary | |
---|---|
protected java.lang.String |
getPrefix()
|
java.lang.String |
getScheme()
Get the scheme (prefix) for this file provider. |
java.io.InputStream |
newInputStream()
Create an input stream to read from the file. |
java.io.OutputStream |
newOutputStream(boolean append)
Create an output stream to write into the file. |
java.nio.channels.FileChannel |
open(java.lang.String mode)
Open a random access file object. |
static void |
register()
Register this file system. |
long |
size()
Get the size of a file in bytes |
FilePath |
unwrap(java.lang.String fileName)
Get the base path for the given wrapped path. |
Methods inherited from class org.h2.store.fs.FilePathWrapper |
---|
canWrite, createDirectory, createFile, createTempFile, delete, exists, getBase, getParent, getPath, isAbsolute, isDirectory, lastModified, moveTo, newDirectoryStream, setReadOnly, toRealPath, unwrap, wrap |
Methods inherited from class org.h2.store.fs.FilePath |
---|
get, getName, getNextTempFileNamePart, register, toString, unregister |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilePathCrypt()
Method Detail |
---|
public static void register()
protected java.lang.String getPrefix()
getPrefix
in class FilePathWrapper
public FilePath unwrap(java.lang.String fileName)
FilePathWrapper
unwrap
in class FilePathWrapper
fileName
- the path including the scheme prefix
public long size()
FilePath
size
in class FilePathWrapper
public java.nio.channels.FileChannel open(java.lang.String mode) throws java.io.IOException
FilePath
open
in class FilePathWrapper
mode
- the access mode. Supported are r, rw, rws, rwd
java.io.IOException
public java.io.OutputStream newOutputStream(boolean append)
FilePath
newOutputStream
in class FilePathWrapper
append
- if true, the file will grow, if false, the file will be
truncated first
public java.io.InputStream newInputStream()
FilePath
newInputStream
in class FilePathWrapper
public java.lang.String getScheme()
FilePath
java.nio.file.spi.FileSystemProvider.getScheme
.
getScheme
in class FilePath
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |