|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.dev.fs.FileObjectCrypt
public class FileObjectCrypt
An encrypted file.
| Constructor Summary | |
|---|---|
FileObjectCrypt(java.lang.String name,
java.lang.String algorithm,
java.lang.String password,
FileObject file)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the file. |
long |
getFilePointer()
Get the file pointer. |
java.lang.String |
getName()
Get the full qualified name of this file. |
long |
length()
Get the length of the file. |
void |
readFully(byte[] b,
int off,
int len)
Read from the file. |
void |
releaseLock()
Release the file lock. |
void |
seek(long pos)
Go to the specified position in the file. |
void |
setFileLength(long newLength)
Change the length of the file. |
void |
sync()
Force changes to the physical location. |
boolean |
tryLock()
Try to lock the file exclusively. |
void |
write(byte[] b,
int off,
int len)
Write to the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileObjectCrypt(java.lang.String name,
java.lang.String algorithm,
java.lang.String password,
FileObject file)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public long getFilePointer()
throws java.io.IOException
FileObject
getFilePointer in interface FileObjectjava.io.IOExceptionpublic java.lang.String getName()
FileObject
getName in interface FileObject
public long length()
throws java.io.IOException
FileObject
length in interface FileObjectjava.io.IOExceptionpublic void releaseLock()
FileObject
releaseLock in interface FileObject
public void seek(long pos)
throws java.io.IOException
FileObject
seek in interface FileObjectpos - the new position
java.io.IOException
public void sync()
throws java.io.IOException
FileObject
sync in interface FileObjectjava.io.IOExceptionpublic boolean tryLock()
FileObject
tryLock in interface FileObject
public void close()
throws java.io.IOException
FileObject
close in interface FileObjectjava.io.IOException
public void setFileLength(long newLength)
throws java.io.IOException
FileObject
setFileLength in interface FileObjectnewLength - the new length
java.io.IOException
public void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
FileObject
readFully in interface FileObjectb - the byte arrayoff - the offsetlen - the number of bytes
java.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
FileObject
write in interface FileObjectb - the byte arrayoff - the offsetlen - the number of bytes
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||