Google Tech Talks Presents Overview of NIO.2 for Java 7
NIO.2 is a series of enhancements to the I/O facilities in Java planned for a Java 7 release. All of the major enhancements for the JSR are discussed in the video, including:
- File System API - The problems and short-comings of java.io.File are discussed, and the new API is presented with examples of complex paths, utilities for copying and iterating, symbolic link support, notification mechanisms, compatibility with existing I/O APIs, and file attribute management.
- Completion of the Socket Channel API - Some issues left over with the implementation of JSR 51 (NIO in Java 1.4) are reviewed, including socket management and lack of multicast support in the NIO channels. Examples are provided for how these issues are being resolved.
- Asynchronous I/O - A comparison of new asynchronous I/O API with polling/non-blocking I/O is provided, as is a description of thread and completion event management in the new API, and a number of examples.
Srini Penchikala Aug 21, 2014