IT. Expert System.

Android Reference

MappedByteBuffer


java.nio

Class MappedByteBuffer

  • All Implemented Interfaces:
    Comparable<ByteBuffer>


    public abstract class MappedByteBuffer
    extends ByteBuffer
    MappedByteBuffer is a special kind of direct byte buffer which maps a region of file to memory.

    MappedByteBuffer can be created by calling FileChannel.map. 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.

    • Method Detail

      • isLoaded

        public final boolean isLoaded()
        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. It is impossible to give a strong guarantee since this is only a snapshot of a dynamic situation.
      • load

        public final MappedByteBuffer load()
        Attempts to load every page of this buffer into RAM. See isLoaded().
        Returns:
        this buffer.
      • force

        public final MappedByteBuffer force()
        Writes all changes of the buffer to the mapped file. If the mapped file is stored on a local device, it is guaranteed that the changes are written to the file. No such guarantee is given if the file is located on a remote device.
        Returns:
        this buffer.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3052 / . Delta: 0.01738 с