public class FilePageManager
extends oracle.xml.scalable.AbstractPageManager
PageManger
that stores pages in a file.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.IOException
public 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.IOException
public 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.IOException
public void deletePage(PageManager.PageId id)
deletePage
in interface PageManager
id
- - an Object containing the page Id.public void close()
close
in interface PageManager