Skip to Content
Java: The Complete Reference, Twelfth Edition, 12th Edition
book

Java: The Complete Reference, Twelfth Edition, 12th Edition

by Herbert Schildt
November 2021
Intermediate to advanced
1280 pages
34h 57m
English
McGraw-Hill
Content preview from Java: The Complete Reference, Twelfth Edition, 12th Edition

CHAPTER 23

Exploring NIO

Beginning with version 1.4, Java has provided a second I/O system called NIO (which is short for New I/O). It supports a buffer-oriented, channel-based approach to I/O operations. With the release of JDK 7, the NIO system was greatly expanded, providing enhanced support for file-handling and file system features. In fact, so significant were the changes that the term NIO.2 is often used. Because of the capabilities supported by the NIO file classes, NIO has become an important approach to file handling. This chapter explores several of the key features of the NIO system.

The NIO Classes

The NIO classes are contained in the packages shown here. Beginning with JDK 9, all are in the java.base module.

Before we begin, it ...

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.
Start your free trial

You might also like

Java: The Complete Reference, Thirteenth Edition, 13th Edition

Java: The Complete Reference, Thirteenth Edition, 13th Edition

Herbert Schildt, Dr. Danny Coward
Head First Java, 3rd Edition

Head First Java, 3rd Edition

Kathy Sierra, Bert Bates, Trisha Gee
Learning Java, 6th Edition

Learning Java, 6th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan

Publisher Resources

ISBN: 9781260463422