public class ReadOnlyMappedBufferWrapper extends ByteBufferWrapper
myDirty, myFile, myLength, myPosition| Modifier | Constructor and Description |
|---|---|
protected |
ReadOnlyMappedBufferWrapper(java.nio.file.Path file,
int pos) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
java.nio.ByteBuffer |
getBuffer() |
java.nio.ByteBuffer |
getCachedBuffer() |
protected java.nio.MappedByteBuffer |
map() |
void |
unmap() |
allocationSize, dispose, isDirty, markDirty, readOnly, readWriteDirect, toStringprotected ReadOnlyMappedBufferWrapper(java.nio.file.Path file,
int pos)
throws java.io.IOException
java.io.IOExceptionprotected java.nio.MappedByteBuffer map()
throws java.io.IOException
java.io.IOExceptionpublic final void unmap()
unmap 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 flush()
flush in class ByteBufferWrapper