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: December 19, 2016 | 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 steps and illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java development
ArticleID=10788
ArticleTitle=Magic with Merlin: The ins and outs of Merlin's new I/O buffers
publish-date=03252003