Chapter 13. java.nio and Subpackages
This chapter documents the New
I/O API defined by the java.nio package and its
subpackages. It covers:
-
java.nio Defines the
Bufferclass and type-specific subclasses, most notably theByteBufferclass that is heavily used for I/O in thejava.nio.channelsclass.-
java.nio.channels Defines the
Channelabstraction for high-performance I/O, and implements channels for file and network I/O. Also allows nonblocking I/O with theSelectorclass.-
java.nio.channels.spi The service provider interface for channel and selector implementations.
-
java.nio.charset Defines classes for encoding sequences of characters into bytes and decoding sequences of bytes into characters, according to the encoding rules of a named charset.
-
java.nio.charset.spi The service provider interface for charset implementations.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access