Migrating to New I/O
Chapters 11 and 12 introduced you to Java’s classic I/O APIs. Chapter 11 presented classic I/O in terms of the java.io.RandomAccessFile class, streams, and writers/readers. Chapter 12 presented classic I/O in terms of sockets and URLs.
Modern operating systems offer powerful I/O features that are not supported by Java’s classic I/O APIs. Features include memory-mapped file I/O (the ability to map part of a process’s virtual memory [see http://en.wikipedia.org/wiki/Virtual_memory] to some portion of a file so that writes to or reads from that portion of the process’s memory space actually write/read the associated portion of the file), readiness selection (a step above nonblocking I/O that offloads to the operating ...