Java.Nio Namespace

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 put or compact is invoked upon a read-only buffer.

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.