public class ByteBufferTargetBuffer extends Object implements PageReadTargetBuffer
Constructor and Description |
---|
ByteBufferTargetBuffer(ByteBuffer target)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
byteArray() |
ByteBuffer |
byteBuffer() |
WritableByteChannel |
byteChannel() |
long |
offset() |
int |
readFromFile(RandomAccessFile file,
int length) |
long |
remaining() |
void |
writeBytes(byte[] srcArray,
int srcOffset,
int length) |
public ByteBufferTargetBuffer(ByteBuffer target)
target
- public byte[] byteArray()
byteArray
in interface PageReadTargetBuffer
public ByteBuffer byteBuffer()
byteBuffer
in interface PageReadTargetBuffer
public long offset()
offset
in interface PageReadTargetBuffer
public WritableByteChannel byteChannel()
byteChannel
in interface PageReadTargetBuffer
public long remaining()
remaining
in interface PageReadTargetBuffer
public void writeBytes(byte[] srcArray, int srcOffset, int length)
writeBytes
in interface PageReadTargetBuffer
public int readFromFile(RandomAccessFile file, int length) throws IOException
readFromFile
in interface PageReadTargetBuffer
IOException
Copyright © 2023. All Rights Reserved.