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
Buffer
class and type-specific subclasses, most notably theByteBuffer
class that is heavily used for I/O in thejava.nio.channels
class.-
java.nio.channels
Defines the
Channel
abstraction for high-performance I/O, and implements channels for file and network I/O. Also allows nonblocking I/O with theSelector
class.-
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.
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.