See the SDK Documentation for more information about installing and configuring JDK 1.4.
Sun's guide to the new I/O APIs provides a thorough introduction to NIO, including some minor elements not covered in this tutorial.
- The online API specification describes the classes and methods of NIO, in the autodoc format that you know and love.
JSR 51 is the Java Community Process document that first specified the new features of NIO. In fact, NIO, as implemented in JDK 1.4, is a subset of the features described in this document.
- Want a thorough introduction to stream I/O (including problems, solutions, and the introduction of NIO)? You couldn't do better than Merlin Hughes's " Turning streams inside out " ( developerWorks,
- Of course, you could also just take the tutorial. " Introduction to Java I/O " ( developerWorks,
April 2000) covers all the basics of Java I/O prior to JDK 1.4.
- John Zukowski has written some good articles about NIO for his Magic with Merlin column:
- " The ins and outs of Merlin's new I/O buffers " ( developerWorks, March 2003) is another look at buffer basics.
- " Character sets " ( developerWorks, October 2002) is all about charsets (especially conversion and encoding schemes).
- Get a little deeper into NIO with Aruna Kalagnanam and Balu G's " Merlin brings nonblocking I/O to the Java platform " ( developerWorks,
- Greg Travis examines NIO in his book,
JDK 1.4 Tutorial
(Manning Publications, March 2002).
- You'll find hundreds of articles about every aspect of Java programming in the
developerWorks Java technology zone.
Get products and technologies
the complete source for the examples in this tutorial.