Java.Nio Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines buffers, which are containers for data, and provides an overview of the other NIO packages.
Classes
| Name | Description |
|---|---|
| Buffer |
A container for data of a specific primitive type. |
| BufferOverflowException |
Unchecked exception thrown when a relative put operation reaches the target buffer's limit. |
| BufferUnderflowException |
Unchecked exception thrown when a relative get operation reaches the source buffer's limit. |
| ByteBuffer |
A byte buffer. |
| ByteOrder |
A typesafe enumeration for byte orders. |
| CharBuffer |
A char buffer. |
| DoubleBuffer |
A double buffer. |
| FloatBuffer |
A float buffer. |
| IntBuffer |
An int buffer. |
| InvalidMarkException |
Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined. |
| LongBuffer |
A long buffer. |
| MappedByteBuffer |
A direct byte buffer whose content is a memory-mapped region of a file. |
| ReadOnlyBufferException |
Unchecked exception thrown when a content-mutation method such as
|
| ShortBuffer |
A short buffer. |
Remarks
The java.nio package defines the buffer classes, which are used throughout the NIO APIs.
Java documentation for the java.nio package.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.