Magic with Merlin, The ins and outs of Merlin's new I/O buffers

Learn how to manipulate J2SE 1.4's new I/O package

From the developerWorks archives

John Zukowski

Date archived: May 14, 2019 | First published: March 25, 2003

A series of buffer classes underpins the Java 2 Platform Standard Edition's new I/O (NIO) packages. The classes' data containers form the foundation of other NIO operations like nonblocking reads over socket channels. In this month's Magic with Merlin, resident Java programming wizard John Zukowski shows how to manipulate those data buffers for such tasks as reading/writing primitives and working with memory-mapped files. In a later article, he'll expand on the concepts presented here to work with the socket channels.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.

Zone=Java development
ArticleTitle=Magic with Merlin: The ins and outs of Merlin's new I/O buffers