API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.nio. MappedByteBuffer View Source
Author(s)
Mark Reinhold
JSR-51 Expert Group
Since
1.4
Version
1.24, 05/11/17
Serial
Hierarchy
 Object
      Buffer
          ByteBuffer
              MappedByteBuffer
Implements
Subclasses
Description
publicabstract abstract class MappedByteBuffer
  A direct byte buffer whose content is a memory-mapped region of a file.
See also:   
Constructors
pack-private MappedByteBuffer (int mark, int pos, int lim, int cap)
pack-private MappedByteBuffer (int mark, int pos, int lim, int cap, boolean mapped)
Methods
Hide/Show inherited methods
pack-privateabstract byte _get (int arg0) [Inherited From ByteBuffer]
pack-privateabstract void _put (int arg0, byte arg1) [Inherited From ByteBuffer]
publicstatic ByteBuffer allocate (int arg0) [Inherited From ByteBuffer]
publicstatic ByteBuffer allocateDirect (int arg0) [Inherited From ByteBuffer]
publicfinal byte array () [Inherited From ByteBuffer] [Specified in Buffer]
publicfinal int arrayOffset () [Inherited From ByteBuffer] [Specified in Buffer]
publicabstract CharBuffer asCharBuffer () [Inherited From ByteBuffer]
publicabstract DoubleBuffer asDoubleBuffer () [Inherited From ByteBuffer]
publicabstract FloatBuffer asFloatBuffer () [Inherited From ByteBuffer]
publicabstract IntBuffer asIntBuffer () [Inherited From ByteBuffer]
publicabstract LongBuffer asLongBuffer () [Inherited From ByteBuffer]
publicabstract ByteBuffer asReadOnlyBuffer () [Inherited From ByteBuffer]
publicabstract ShortBuffer asShortBuffer () [Inherited From ByteBuffer]
publicfinal int capacity () [Inherited From Buffer]
  Returns this buffer's capacity.
pack-privatestatic void checkBounds (int off, int len, int size) [Inherited From Buffer]
pack-privatefinal int checkIndex (int i) [Inherited From Buffer]
Checks the given index against the limit, throwing an IndexOutOfBoundsException if it is not smaller than the limit or is smaller than zero.
pack-privatefinal int checkIndex (int i, int nb) [Inherited From Buffer]
publicfinal Buffer clear () [Inherited From Buffer]
  Clears this buffer.
publicabstract ByteBuffer compact () [Inherited From ByteBuffer]
public int compareTo (ByteBuffer arg0) [Inherited From ByteBuffer]
public int compareTo (Object arg0) [Inherited From ByteBuffer]
publicabstract ByteBuffer duplicate () [Inherited From ByteBuffer]
public boolean equals (Object arg0) [Inherited From ByteBuffer]
publicfinal Buffer flip () [Inherited From Buffer]
  Flips this buffer.
publicfinal MappedByteBuffer force ()
  Forces any changes made to this buffer's content to be written to the storage device containing the mapped file.
publicabstract byte get () [Inherited From ByteBuffer]
public ByteBuffer get (byte[] arg0) [Inherited From ByteBuffer]
public ByteBuffer get (byte[] arg0, int arg1, int arg2) [Inherited From ByteBuffer]
publicabstract byte get (int arg0) [Inherited From ByteBuffer]
publicabstract char getChar () [Inherited From ByteBuffer]
publicabstract char getChar (int arg0) [Inherited From ByteBuffer]
publicabstract double getDouble () [Inherited From ByteBuffer]
publicabstract double getDouble (int arg0) [Inherited From ByteBuffer]
publicabstract float getFloat () [Inherited From ByteBuffer]
publicabstract float getFloat (int arg0) [Inherited From ByteBuffer]
publicabstract int getInt () [Inherited From ByteBuffer]
publicabstract int getInt (int arg0) [Inherited From ByteBuffer]
publicabstract long getLong () [Inherited From ByteBuffer]
publicabstract long getLong (int arg0) [Inherited From ByteBuffer]
publicabstract short getShort () [Inherited From ByteBuffer]
publicabstract short getShort (int arg0) [Inherited From ByteBuffer]
publicfinal boolean hasArray () [Inherited From ByteBuffer] [Specified in Buffer]
public int hashCode () [Inherited From ByteBuffer]
publicfinal boolean hasRemaining () [Inherited From Buffer]
  Tells whether there are any elements between the current position and the limit.
publicabstract boolean isDirect () [Inherited From ByteBuffer] [Specified in Buffer]
publicfinal boolean isLoaded ()
  Tells whether or not this buffer's content is resident in physical memory.
publicabstract boolean isReadOnly () [Inherited From Buffer]
  Tells whether or not this buffer is read-only.
publicfinal int limit () [Inherited From Buffer]
  Returns this buffer's limit.
publicfinal Buffer limit (int newLimit) [Inherited From Buffer]
  Sets this buffer's limit.
publicfinal MappedByteBuffer load ()
  Loads this buffer's content into physical memory.
publicfinal Buffer mark () [Inherited From Buffer]
  Sets this buffer's mark at its position.
pack-privatefinal int markValue () [Inherited From Buffer]
pack-privatefinal int nextGetIndex () [Inherited From Buffer]
  Checks the current position against the limit, throwing a BufferUnderflowException if it is not smaller than the limit, and then increments the position.
pack-privatefinal int nextGetIndex (int nb) [Inherited From Buffer]
pack-privatefinal int nextPutIndex () [Inherited From Buffer]
  Checks the current position against the limit, throwing a BufferOverflowException if it is not smaller than the limit, and then increments the position.
pack-privatefinal int nextPutIndex (int nb) [Inherited From Buffer]
publicfinal ByteOrder order () [Inherited From ByteBuffer]
publicfinal ByteBuffer order (ByteOrder arg0) [Inherited From ByteBuffer]
publicfinal int position () [Inherited From Buffer]
  Returns this buffer's position.
publicfinal Buffer position (int newPosition) [Inherited From Buffer]
  Sets this buffer's position.
publicabstract ByteBuffer put (byte arg0) [Inherited From ByteBuffer]
publicfinal ByteBuffer put (byte[] arg0) [Inherited From ByteBuffer]
public ByteBuffer put (byte[] arg0, int arg1, int arg2) [Inherited From ByteBuffer]
public ByteBuffer put (ByteBuffer arg0) [Inherited From ByteBuffer]
publicabstract ByteBuffer put (int arg0, byte arg1) [Inherited From ByteBuffer]
publicabstract ByteBuffer putChar (char arg0) [Inherited From ByteBuffer]
publicabstract ByteBuffer putChar (int arg0, char arg1) [Inherited From ByteBuffer]
publicabstract ByteBuffer putDouble (double arg0) [Inherited From ByteBuffer]
publicabstract ByteBuffer putDouble (int arg0, double arg1) [Inherited From ByteBuffer]
publicabstract ByteBuffer putFloat (float arg0) [Inherited From ByteBuffer]
publicabstract ByteBuffer putFloat (int arg0, float arg1) [Inherited From ByteBuffer]
publicabstract ByteBuffer putInt (int arg0) [Inherited From ByteBuffer]
publicabstract ByteBuffer putInt (int arg0, int arg1) [Inherited From ByteBuffer]
publicabstract ByteBuffer putLong (int arg0, long arg1) [Inherited From ByteBuffer]
publicabstract ByteBuffer putLong (long arg0) [Inherited From ByteBuffer]
publicabstract ByteBuffer putShort (int arg0, short arg1) [Inherited From ByteBuffer]
publicabstract ByteBuffer putShort (short arg0) [Inherited From ByteBuffer]
publicfinal int remaining () [Inherited From Buffer]
  Returns the number of elements between the current position and the limit.
publicfinal Buffer reset () [Inherited From Buffer]
  Resets this buffer's position to the previously-marked position.
publicfinal Buffer rewind () [Inherited From Buffer]
  Rewinds this buffer.
publicabstract ByteBuffer slice () [Inherited From ByteBuffer]
public String toString () [Inherited From ByteBuffer]
publicstatic ByteBuffer wrap (byte[] arg0) [Inherited From ByteBuffer]
publicstatic ByteBuffer wrap (byte[] arg0, int arg1, int arg2) [Inherited From ByteBuffer]
Fields
Hide/Show inherited fields
pack-private long address [Inherited From Buffer]
pack-private boolean bigEndian [Inherited From ByteBuffer]
pack-privatefinal byte hb [Inherited From ByteBuffer]
pack-privatevolatile boolean isAMappedBuffer
pack-private boolean isReadOnly [Inherited From ByteBuffer]
pack-private boolean nativeByteOrder [Inherited From ByteBuffer]
pack-privatefinal int offset [Inherited From ByteBuffer]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar