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, toString
protected ReadOnlyMappedBufferWrapper(java.nio.file.Path file, int pos) throws java.io.IOException
java.io.IOException
protected java.nio.MappedByteBuffer map() throws java.io.IOException
java.io.IOException
public final void unmap()
unmap
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 flush()
flush
in class ByteBufferWrapper