| java.lang.Object org.h2.store.FileStore
All known Subclasses: org.h2.security.SecureFileStore,
FileStore | public class FileStore (Code) | | This class is an abstraction of a random access file.
Each file contains a magic header, and reading / writing is done in blocks.
See also
SecureFileStore |
Method Summary | |
public void | autoDelete() | protected void | checkPowerOff() | protected void | checkWritingAllowed() | public void | close() | public void | closeAndDeleteSilently() | public void | closeFile() | public void | closeSilently() | protected byte[] | generateSalt() | public long | getFilePointer() | public void | init() | protected void | initKey(byte[] salt) | public boolean | isEncrypted() | public long | length() | public static FileStore | open(DataHandler handler, String name, String mode, byte[] magic) Open a non encrypted file store with the given settings. | public static FileStore | open(DataHandler handler, String name, String mode, byte[] magic, String cipher, byte[] key) Open an encrypted file store with the given settings. | public static FileStore | open(DataHandler handler, String name, String mode, byte[] magic, String cipher, byte[] key, int keyIterations) Open an encrypted file store with the given settings. | public void | openFile() | public void | readFully(byte[] b, int off, int len) | protected void | readFullyDirect(byte[] b, int off, int len) | public void | seek(long pos) | public void | setCheckedWriting(boolean value) | public void | setLength(long newLength) | public void | stopAutoDelete() | public void | sync() | public void | write(byte[] b, int off, int len) | protected void | writeDirect(byte[] b, int off, int len) |
EMPTY | final protected static byte[] EMPTY(Code) | | |
HEADER_LENGTH | final public static int HEADER_LENGTH(Code) | | |
autoDelete | public void autoDelete()(Code) | | |
closeAndDeleteSilently | public void closeAndDeleteSilently()(Code) | | |
closeSilently | public void closeSilently()(Code) | | |
generateSalt | protected byte[] generateSalt()(Code) | | |
initKey | protected void initKey(byte[] salt)(Code) | | |
isEncrypted | public boolean isEncrypted()(Code) | | |
open | public static FileStore open(DataHandler handler, String name, String mode, byte[] magic) throws SQLException(Code) | | Open a non encrypted file store with the given settings.
Parameters: handler - the data handler Parameters: name - the file name Parameters: mode - the access mode (r, rw, rws, rwd) Parameters: magic - the file header magic bytes the created object |
open | public static FileStore open(DataHandler handler, String name, String mode, byte[] magic, String cipher, byte[] key) throws SQLException(Code) | | Open an encrypted file store with the given settings.
Parameters: handler - the data handler Parameters: name - the file name Parameters: mode - the access mode (r, rw, rws, rwd) Parameters: magic - the file header magic bytes Parameters: cipher - the name of the cipher algorithm Parameters: key - the encryption key the created object |
open | public static FileStore open(DataHandler handler, String name, String mode, byte[] magic, String cipher, byte[] key, int keyIterations) throws SQLException(Code) | | Open an encrypted file store with the given settings.
Parameters: handler - the data handler Parameters: name - the file name Parameters: mode - the access mode (r, rw, rws, rwd) Parameters: magic - the file header magic bytes Parameters: cipher - the name of the cipher algorithm Parameters: key - the encryption key Parameters: keyIterations - the number of iterations the key should be hashed the created object |
readFullyDirect | protected void readFullyDirect(byte[] b, int off, int len) throws SQLException(Code) | | |
setCheckedWriting | public void setCheckedWriting(boolean value)(Code) | | |
stopAutoDelete | public void stopAutoDelete()(Code) | | |
writeDirect | protected void writeDirect(byte[] b, int off, int len) throws SQLException(Code) | | |
|
|