public abstract class MappedByteBuffer extends ByteBuffer
MappedByteBufferis a special kind of direct byte buffer which maps a region of file to memory.
MappedByteBuffer can be created by calling
Once created, the mapping between the byte buffer and the file region remains
valid until the byte buffer is garbage collected.
All or part of a
MappedByteBuffer's content may change or become
inaccessible at any time, since the mapped file region can be modified by
another thread or process at any time. If this happens, the behavior of the
MappedByteBuffer is undefined.
|Modifier and Type||Method and Description|
Writes all changes of the buffer to the mapped file.
Returns true if there is a high probability that every page of this buffer is currently loaded in RAM, meaning that accesses will not cause a page fault.
Attempts to load every page of this buffer into RAM.
allocate, allocateDirect, array, arrayOffset, asCharBuffer, asDoubleBuffer, asFloatBuffer, asIntBuffer, asLongBuffer, asReadOnlyBuffer, asShortBuffer, compact, compareTo, duplicate, equals, get, get, get, get, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, hasArray, hashCode, isDirect, order, order, put, put, put, put, put, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, slice, wrap, wrap
capacity, clear, flip, hasRemaining, isReadOnly, limit, limit, mark, position, position, remaining, reset, rewind, toString
public final boolean isLoaded()
public final MappedByteBuffer load()
public final MappedByteBuffer force()