public class FilePageManager
extends oracle.xml.scalable.AbstractPageManager
| Constructor and Description |
|---|
FilePageManager(java.lang.String filename)
Creates a FilePageManager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the session.
|
void |
deletePage(PageManager.PageId id)
Delete the page for the given page id.
|
int |
read(byte[] buf, int off, int len)
Read from the given offset into the buffer
|
void |
seek(long offset)
Seek to the given offset
|
void |
write(byte[] buf, int off, int len)
Write at the given offset from the buffer
|
public FilePageManager(java.lang.String filename)
filename - - the system-dependent filenamepublic void seek(long offset)
throws java.io.IOException
java.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
buf - - result bufferoff - - offset to start reading fromlen - - number of bytes to readjava.io.IOExceptionpublic void write(byte[] buf,
int off,
int len)
throws java.io.IOException
buf - - input bufferoff - - offset to start writing fromlen - - number of bytes to writejava.io.IOExceptionpublic void deletePage(PageManager.PageId id)
deletePage in interface PageManagerid - - an Object containing the page Id.public void close()
close in interface PageManager