クラス
java.nio.MappedByteBufferの使用
MappedByteBufferを使用するパッケージ
パッケージ
説明
データのコンテナであるバッファについて定義し、その他のNIOパッケージの概要情報を提供します。
入出力操作を実行できるエンティティ(ファイル、ソケットなど)への接続を表すチャネルや、多重化された非ブロック入出力操作用のセレクタを定義します。
-
java.nioでのMappedByteBufferの使用
MappedByteBufferを返すjava.nioのメソッド修飾子と型メソッド説明final MappedByteBufferMappedByteBuffer.clear()このバッファをクリアします。abstract MappedByteBufferMappedByteBuffer.compact()このバッファを圧縮します (オプションの操作)。abstract MappedByteBufferMappedByteBuffer.duplicate()このバッファの内容を共有する新しいbyteバッファを作成します。final MappedByteBufferMappedByteBuffer.flip()このバッファをフリップ(反転)します。final MappedByteBufferMappedByteBuffer.force()このバッファの内容への変更を、マップされたファイルが格納されている記憶装置へ強制的に書き込みます。final MappedByteBufferMappedByteBuffer.force(int index, int length) このバッファ・コンテンツのリージョンに対して行われたすべての変更を、マップされたファイルを含むストレージ・デバイスに強制的に書き込みます。final MappedByteBufferMappedByteBuffer.limit(int newLimit) このバッファのリミットを設定します。final MappedByteBufferMappedByteBuffer.load()このバッファの内容を物理メモリーにロードします。final MappedByteBufferMappedByteBuffer.mark()このバッファの現在位置にマークを設定します。final MappedByteBufferMappedByteBuffer.position(int newPosition) このバッファの位置を設定します。final MappedByteBufferMappedByteBuffer.reset()バッファの位置を以前にマークした位置に戻します。final MappedByteBufferMappedByteBuffer.rewind()このバッファをリワインド(巻き戻し)します。abstract MappedByteBufferMappedByteBuffer.slice()このバッファの共有のサブシーケンスを内容とする新しいbyteバッファを作成します。abstract MappedByteBufferMappedByteBuffer.slice(int index, int length) このバッファの共有のサブシーケンスを内容とする新しいbyteバッファを作成します。 -
java.nio.channelsでのMappedByteBufferの使用
修飾子と型メソッド説明abstract MappedByteBufferFileChannel.map(FileChannel.MapMode mode, long position, long size) このチャネルのファイルの領域を直接メモリーにマッピングします。