tailieunhanh - Java™ NIO

Java NIO explores the new I/O capabilities of version in detail and shows you how to put these features to work to greatly improve the efficiency of the Java code you write. This compact volume examines the typical challenges that Java programmers face with I/O and shows you how to take advantage of the capabilities of the new I/O features. You'll learn how to put these tools to work using examples of common, real-world I/O problems and see how the new features have a direct impact on responsiveness, scalability, and reliability. Because the NIO APIs supplement the I/O features. | Developing High Performance Applications Java NIC O REILLY Ron Hitchens Java NIO Ron Hitchens Publisher O Reilly First Edition August 2002 ISBN 0-596-00288-2 312 pages Java NIO explores the new I O capabilities of version in detail and shows you how to put these features to work to greatly improve the efficiency of the Java code you write. This compact volume examines the typical challenges that Java programmers face with I O and shows you how to take advantage of the capabilities of the new I O features. You ll learn how to put these tools to work using examples of common real-world I O problems and see how the new features have a direct impact on responsiveness scalability and reliability. Because the NIO APIs supplement the I O features of version rather than replace them you ll also learn when to use new APIs and when the older I O APIs are better suited to your particular application. Table of Contents Who Should Read This Software and Conventions Used in This How to Contact Chapter 1. I O Versus CPU No Longer CPU Getting to the Good I O Summary . 21 Chapter 2. Buffer Creating Duplicating Byte Chapter 3. Channel Scatter File Memory-Mapped Socket The Channels Utility Chapter 4. Selector Using Selection Using Asynchronous Selection Chapter 5. Regular Regular Expression The Java Regular Expression Regular Expression Methods of the String Java Regular Expression An Object-Oriented File .