org.h2.test.unit
Class FileSystemCrypt

java.lang.Object
  extended by org.h2.store.fs.FileSystem
      extended by org.h2.store.fs.FileSystemWrapper
          extended by org.h2.test.unit.FileSystemCrypt

public class FileSystemCrypt
extends FileSystemWrapper

This file system encrypts the data.


Constructor Summary
FileSystemCrypt()
           
 
Method Summary
protected  java.lang.String getPrefix()
          Get the prefix for this file system.
 long length(java.lang.String fileName)
          Get the length of a file.
 FileObject openFileObject(java.lang.String fileName, java.lang.String mode)
          Open a random access file object.
 
Methods inherited from class org.h2.store.fs.FileSystemWrapper
accepts, canWrite, copy, createDirs, createNewFile, createTempFile, delete, deleteRecursive, exists, fileStartsWith, getAbsolutePath, getFileName, getLastModified, getParent, isAbsolute, isDirectory, isReadOnly, listFiles, normalize, openFileInputStream, openFileOutputStream, rename, setReadOnly, tryDelete, unwrap
 
Methods inherited from class org.h2.store.fs.FileSystem
getInstance, getNextTempFileNamePart, mkdirs, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemCrypt

public FileSystemCrypt()
Method Detail

getPrefix

protected java.lang.String getPrefix()
Description copied from class: FileSystemWrapper
Get the prefix for this file system.

Specified by:
getPrefix in class FileSystemWrapper
Returns:
the prefix

length

public long length(java.lang.String fileName)
Description copied from class: FileSystem
Get the length of a file.

Overrides:
length in class FileSystemWrapper
Parameters:
fileName - the file name
Returns:
the length in bytes

openFileObject

public FileObject openFileObject(java.lang.String fileName,
                                 java.lang.String mode)
Description copied from class: FileSystem
Open a random access file object.

Overrides:
openFileObject in class FileSystemWrapper
Parameters:
fileName - the file name
mode - the access mode. Supported are r, rw, rws, rwd
Returns:
the file object