|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.store.fs.FileObjectMemory
public class FileObjectMemory
This class is an abstraction of an in-memory random access file. Data compression using the LZF algorithm is supported as well.
| Method Summary | |
|---|---|
void |
close()
Close the file. |
long |
getFilePointer()
Get the file pointer. |
long |
getLastModified()
|
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 |
seek(long pos)
Go to the specified position in the file. |
void |
setFileLength(long newLength)
Change the length of the file. |
void |
setName(java.lang.String name)
|
void |
sync()
Force changes to the physical location. |
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 |
| Method Detail |
|---|
public long length()
FileObject
length in interface FileObjectpublic void setFileLength(long newLength)
FileObject
setFileLength in interface FileObjectnewLength - the new lengthpublic void seek(long pos)
FileObject
seek in interface FileObjectpos - the new position
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
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.IOExceptionpublic long getFilePointer()
FileObject
getFilePointer in interface FileObjectpublic void close()
FileObject
close in interface FileObjectpublic void sync()
FileObject
sync in interface FileObjectpublic void setName(java.lang.String name)
public java.lang.String getName()
FileObject
getName in interface FileObjectpublic long getLastModified()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||