public class ReadWriteDirectBufferWrapper extends ByteBufferWrapper
myDirty, myFile, myLength, myPosition
Modifier | Constructor and Description |
---|---|
protected |
ReadWriteDirectBufferWrapper(java.nio.file.Path file,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
protected java.nio.ByteBuffer |
create() |
void |
flush() |
java.nio.ByteBuffer |
getBuffer() |
java.nio.ByteBuffer |
getCachedBuffer() |
void |
unmap() |
allocationSize, dispose, isDirty, markDirty, readOnly, readWriteDirect, toString
protected ReadWriteDirectBufferWrapper(java.nio.file.Path file, long offset, long length)
protected java.nio.ByteBuffer create() throws java.io.IOException
java.io.IOException
public void flush()
flush
in class ByteBufferWrapper
public java.nio.ByteBuffer getCachedBuffer()
getCachedBuffer
in class ByteBufferWrapper
public java.nio.ByteBuffer getBuffer() throws java.io.IOException
getBuffer
in class ByteBufferWrapper
java.io.IOException
public void unmap()
unmap
in class ByteBufferWrapper