| java.lang.Object com.quadcap.sql.file.BlockStore com.quadcap.sql.file.EncryptedBlockStore
EncryptedBlockStore | public class EncryptedBlockStore extends BlockStore (Code) | | author: Stan Bailes |
Constructor Summary | |
public | EncryptedBlockStore() Create a new EncryptedBlockStore object using the specified file and
blocksize. |
Method Summary | |
byte[] | makeDigest(String s) | public void | read(long blockNum, byte[] buf) Read a block into a buffer. | public void | setKey(SymmetricKey key) | public void | write(long blockNum, byte[] buf) Write a block from a buffer into the file. |
oHASH_PASSWD_len | final static int oHASH_PASSWD_len(Code) | | |
oHASH_PASSWD_start | final static int oHASH_PASSWD_start(Code) | | |
EncryptedBlockStore | public EncryptedBlockStore()(Code) | | Create a new EncryptedBlockStore object using the specified file and
blocksize.
Parameters: file - the underlying file. Parameters: ra - the randomly-accessible version of the file. Parameters: blocksize - the block size to use for accessing the file. |
read | public void read(long blockNum, byte[] buf) throws IOException(Code) | | Read a block into a buffer. If the specified block is beyond the
current end of file, then grow the file
Parameters: blockNum - the number of the block to read. Parameters: buf - the buffer into which the data is read. |
write | public void write(long blockNum, byte[] buf) throws IOException(Code) | | Write a block from a buffer into the file.
Parameters: blockNum - the number of the block to write. Parameters: buf - the buffer from which the data is written. exception: IOException - if an I/O error occurs. |
Methods inherited from com.quadcap.sql.file.BlockStore | public int blockSize()(Code)(Java Doc) public void clearModified() throws IOException(Code)(Java Doc) public void close() throws IOException(Code)(Java Doc) public void flush() throws IOException(Code)(Java Doc) public File getFile()(Code)(Java Doc) public Log getLog()(Code)(Java Doc) public String getName()(Code)(Java Doc) public void init(File file, String mode, int blockSize, Object lock) throws IOException(Code)(Java Doc) public boolean isEncrypted()(Code)(Java Doc) final protected byte[] newHeader(int blockSize, long lastBlock)(Code)(Java Doc) public void read(long blockNum, byte[] buf) throws IOException(Code)(Java Doc) public void read(long blockNum, byte[] buf, int off) throws IOException(Code)(Java Doc) public void restore(long blockNum, byte[] buf, int off) throws IOException(Code)(Java Doc) public static String rw()(Code)(Java Doc) public void setKey(com.quadcap.crypto.SymmetricKey key) throws IOException(Code)(Java Doc) public void setLength(long length) throws IOException(Code)(Java Doc) public void setLog(Log log)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void write(long blockNum, byte[] buf) throws IOException(Code)(Java Doc)
|
|
|