The More New I/O APIs for the Java Platform (NIO.2) is one of the
major new functional areas in Java 7, adding asynchronous channel functionality and a
new file system API to the language. Developers will gain support for
platform-independent file operations, asynchronous operations, and multicast socket
channels. Part 1 of this two-part article focuses on the asynchronous channel APIs in
NIO.2, and Part 2 covers the new file system functionality.
This article, the second half of a two-part introduction to More New
I/O APIs for the Java Platform (NIO.2), covers the most useful classes and
functionality in the new java.nio.file package and
subpackages. As in Part 1's discussion of the NIO.2 asynchronous channel APIs, the authors demonstrate the concepts involved with extensive code examples.