软件包 | 描述 |
---|---|
java.nio |
定义了缓冲区,这是数据的容器,并提供其他NIO包的概述。
|
java.nio.channels |
定义了渠道,它代表的是能够执行I/O操作的实体连接,如文件和套接字;定义选择器,多路复用,非阻塞I/O操作。
|
Modifier and Type | Method and Description |
---|---|
MappedByteBuffer |
MappedByteBuffer.force()
强制将此缓冲区的内容写入到包含映射文件的存储设备上的任何更改。
|
MappedByteBuffer |
MappedByteBuffer.load()
将此缓冲区的内容加载到物理内存中。
|
Modifier and Type | Method and Description |
---|---|
abstract MappedByteBuffer |
FileChannel.map(FileChannel.MapMode mode, long position, long size)
将此通道的文件的区域映射到内存中。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.