NIO2 is an umbrella name for new features added to the original Java NIO package in the Java 1.7 release. Also referred to as "New I/O".
NIO.2 is an umbrella name for new features added to the original Java nio package in the Java 1.7 release. Also referred to as "New I/O".
- Asynchronous Channels and Futures: A Channel that supports asynchronous I/O operations with implementations for sockets, server sockets and files.
- Completion Handlers: The ability to register handlers that will be called on the completion of an asynchronous I/O event.
- Asynchronous Channel Groups: A grouping of asynchronous channels for the purpose of resource sharing.
- Asynchronous Multicast: Support for implementing asynchronous NIO I/O with callbacks for UDP multicast.
- A New File System API for Java: Defines new interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
Articles and Tutorials
- NIO.2 Official Oracle Tutorial
- An NIO.2 primer, Parts 1 and 2 (IBM DeveloperWorks)
- Introducing NIO.2 (JSR 203) Parts 1-6 (Masoud Kalali)
- New I/O on Wikipedia
Note: This tag and wiki should be rolled into the nio tag.