Chapter 13
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 ...
Get Learn Java for Android Development, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.