|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.store.fs.FileSystem
org.h2.store.fs.FileSystemWrapper
org.h2.dev.fs.FileSystemCrypt
public class FileSystemCrypt
A file system that encrypts the contents of the files.
| Field Summary | |
|---|---|
static java.lang.String |
PREFIX
The prefix to use for this file system. |
| Constructor Summary | |
|---|---|
FileSystemCrypt()
|
|
| Method Summary | |
|---|---|
java.lang.String |
createTempFile(java.lang.String prefix,
java.lang.String suffix,
boolean deleteOnExit,
boolean inTempDir)
Create a new temporary file. |
java.lang.String |
getCanonicalPath(java.lang.String fileName)
Normalize a file name. |
java.lang.String |
getParent(java.lang.String fileName)
Get the parent directory of a file or directory. |
protected java.lang.String |
getPrefix()
Get the prefix for this file system. |
long |
length(java.lang.String fileName)
Get the length of a file. |
java.lang.String[] |
listFiles(java.lang.String directory)
List the files in the given directory. |
java.io.InputStream |
openFileInputStream(java.lang.String fileName)
Create an input stream to read from the file. |
FileObject |
openFileObject(java.lang.String fileName,
java.lang.String mode)
Open a random access file object. |
java.io.OutputStream |
openFileOutputStream(java.lang.String fileName,
boolean append)
Create an output stream to write into the file. |
static FileSystemCrypt |
register()
Register the file system. |
java.lang.String |
unwrap(java.lang.String fileName)
Get the unwrapped file name (without wrapper prefixes if wrapping / delegating file systems are used). |
| Methods inherited from class org.h2.store.fs.FileSystemWrapper |
|---|
accepts, canWrite, createDirs, createNewFile, delete, deleteRecursive, exists, fileStartsWith, getFileName, getLastModified, isAbsolute, isDirectory, isReadOnly, rename, setReadOnly, tryDelete |
| Methods inherited from class org.h2.store.fs.FileSystem |
|---|
getInstance, getNextTempFileNamePart, register, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PREFIX
| Constructor Detail |
|---|
public FileSystemCrypt()
| Method Detail |
|---|
protected java.lang.String getPrefix()
FileSystemWrapper
getPrefix in class FileSystemWrapperpublic static FileSystemCrypt register()
public long length(java.lang.String fileName)
FileSystem
length in class FileSystemWrapperfileName - the file name
public FileObject openFileObject(java.lang.String fileName,
java.lang.String mode)
throws java.io.IOException
FileSystem
openFileObject in class FileSystemWrapperfileName - the file namemode - the access mode. Supported are r, rw, rws, rwd
java.io.IOException
public java.io.OutputStream openFileOutputStream(java.lang.String fileName,
boolean append)
FileSystem
openFileOutputStream in class FileSystemWrapperfileName - the file nameappend - if true, the file will grow, if false, the file will be
truncated first
public java.io.InputStream openFileInputStream(java.lang.String fileName)
FileSystem
openFileInputStream in class FileSystemWrapperfileName - the file name
public java.lang.String getParent(java.lang.String fileName)
FileSystem
getParent in class FileSystemWrapperfileName - the file or directory name
public java.lang.String[] listFiles(java.lang.String directory)
FileSystem
listFiles in class FileSystemWrapperdirectory - the directory
public java.lang.String getCanonicalPath(java.lang.String fileName)
FileSystem
getCanonicalPath in class FileSystemWrapperfileName - the file name
public java.lang.String unwrap(java.lang.String fileName)
FileSystem
unwrap in class FileSystemWrapperfileName - the file name
public java.lang.String createTempFile(java.lang.String prefix,
java.lang.String suffix,
boolean deleteOnExit,
boolean inTempDir)
throws java.io.IOException
FileSystem
createTempFile in class FileSystemWrapperprefix - the prefix of the file name (including directory name if
required)suffix - the suffixdeleteOnExit - if the file should be deleted when the virtual
machine existsinTempDir - if the file should be stored in the temporary directory
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||