class FileSource extends java.lang.Object implements LogSource
| Constructor and Description |
|---|
FileSource(java.io.RandomAccessFile file,
int readBufferSize,
FileManager fileManager,
long fileNum) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getBytes(long fileOffset)
Fill the destination byte array with bytes.
|
java.nio.ByteBuffer |
getBytes(long fileOffset,
int numBytes)
Fill the destination byte array with the requested number of bytes.
|
void |
release()
We're done with this log source.
|
FileSource(java.io.RandomAccessFile file,
int readBufferSize,
FileManager fileManager,
long fileNum)
public void release()
throws DatabaseException
LogSourcerelease in interface LogSourceDatabaseExceptionLogSource.release()public java.nio.ByteBuffer getBytes(long fileOffset)
throws DatabaseException,
java.io.IOException
LogSourcegetBytes in interface LogSourceDatabaseExceptionjava.io.IOExceptionLogSource.getBytes(long)public java.nio.ByteBuffer getBytes(long fileOffset,
int numBytes)
throws DatabaseException,
java.io.IOException
LogSourcegetBytes in interface LogSourceDatabaseExceptionjava.io.IOExceptionLogSource.getBytes(long)Copyright (c) 2004,2008 Oracle. All rights reserved.