Description
Book SynopsisA complete introduction to a major improvement in the new 1.4 version of Java, the new NIO package. This package includes a lot of things that have been missing from previous editions of Java that are critical to writing high-performance, large-scale applications.
Table of ContentsPreface 1. Introduction I/O Versus CPU Time No Longer CPU Bound Getting to the Good Stuff I/O Concepts Summary 2. Buffers Buffer Basics Creating Buffers Duplicating Buffers Byte Buffers Summary 3. Channels Channel Basics Scatter/Gather File Channels Memory-Mapped Files Socket Channels Pipes The Channels Utility Class Summary 4. Selectors Selector Basics Using Selection Keys Using Selectors Asynchronous Closability Selection Scaling Summary 5. Regular Expressions Regular Expression Basics The Java Regular Expression API Regular Expression Methods of the String Class Java Regular Expression Syntax An Object-Oriented File Grep Summary 6. Character Sets Character Set Basics Charsets The Charset Service Provider Interface Summary A. NIO and the JNI B. Selectable Channels SPI C. NIO Quick Reference Index