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, toStringprotected ReadWriteDirectBufferWrapper(java.nio.file.Path file,
long offset,
long length)
protected java.nio.ByteBuffer create()
throws java.io.IOException
java.io.IOExceptionpublic void flush()
flush in class ByteBufferWrapperpublic java.nio.ByteBuffer getCachedBuffer()
getCachedBuffer in class ByteBufferWrapperpublic java.nio.ByteBuffer getBuffer()
throws java.io.IOException
getBuffer in class ByteBufferWrapperjava.io.IOExceptionpublic void unmap()
unmap in class ByteBufferWrapper