Preface
Computers are useless. They can only give you answers.
This book is about advanced input/output on the Java platform,
specifically I/O using the
Java 2 Standard Edition
(J2SE) Software Development Kit
(SDK), Version 1.4 and later. The 1.4 release of
J2SE, code-named Merlin, contains significant new
I/O capabilities that we’ll
explore in detail. These new I/O features are
primarily collected in the
java.nio package (and
its subpackages) and have been dubbed
New I/O
(NIO). In this book, you’ll see
how to put these exciting new features to work to greatly improve the
I/O efficiency of your Java applications.
Java has found its true home among Enterprise Applications (a slippery term if ever there was one), but until the 1.4 release of the J2SE SDK, Java has been at a disadvantage relative to natively compiled languages in the area of I/O. This weakness stems from Java’s greatest strength: Write Once, Run Anywhere. The need for the illusion of a virtual machine, the JVM, means that compromises must be made to make all JVM deployment platforms look the same when running Java bytecode. This need for commonality across operating-system platforms has resulted, to some extent, in a least-common-denominator approach.
Nowhere have these compromises been more sorely felt than in the arena of I/O. While Java possesses a rich set of I/O classes, they have until now concentrated on providing common capabilities, often at a high level of abstraction, across all operating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access