BT

InfoQ Homepage News Google Tech Talks Presents Overview of NIO.2 for Java 7

Google Tech Talks Presents Overview of NIO.2 for Java 7

Bookmarks
The Google Tech Talks channel has released a recent presentation by Alan Bateman of Sun Microsystems and Carl Quinn of Google discussing the key features being defined by JSR 203; commonly known as NIO.2, or more NIO. Alan Bateman is the specification-lead for JSR 203.

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.
As discussed last April on InfoQ, the early draft review has been completed for JSR 203, and as such the draft specification for NIO.2 is available for download. Java 7 snapshots do not yet include NIO.2, however the latest source code, javadocs, and information about mailing-lists is all available on the OpenJDK homepage for JSR 203. Java 7 is expected for release in the first-half of 2009.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Direct link...

    by Wannes Sels /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    ...seems to be missing, so here it is

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.