Skip to content

Most visited

Recently visited

navigation
Added in API level 1

java.nio

Classes

Buffer A buffer is a list of elements of a specific primitive type. 
ByteBuffer A buffer for bytes. 
ByteOrder Defines byte order constants. 
CharBuffer A buffer of chars. 
DoubleBuffer A buffer of doubles. 
FloatBuffer A buffer of floats. 
IntBuffer A buffer of ints. 
LongBuffer A buffer of longs. 
MappedByteBuffer MappedByteBuffer is a special kind of direct byte buffer which maps a region of file to memory. 
ShortBuffer A buffer of shorts. 

Exceptions

BufferOverflowException A BufferOverflowException is thrown when elements are written to a buffer but there is not enough remaining space in the buffer. 
BufferUnderflowException A BufferUnderflowException is thrown when elements are read from a buffer but there are not enough remaining elements in the buffer. 
InvalidMarkException An InvalidMarkException is thrown when reset() is called on a buffer, but no mark has been set previously. 
ReadOnlyBufferException A ReadOnlyBufferException is thrown when some write operation is called on a read-only buffer. 
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.