books books

BOOKS

Since the late 1990s, I've authored and coauthored various books on Java. Also, I've created a series of Java project-oriented e-books. This page focuses on three books and this series.

Java I/O, NIO and NIO.2

Java I/O, NIO and NIO.2 is a power-packed and compact book that accelerates your mastery of Java's various I/O APIs. In this book, you'll learn about classic I/O APIs (File, RandomAccessFile, the stream classes and related types, and the reader/writer classes). Next, you'll learn about NIO's buffer, channel, selector, regular expression, charset, and formatter APIs. Finally, you'll discover NIO.2's offerings in terms of an improved file system interface, asynchronous I/O, and the completion of socket channel functionality.

This book's 500+ pages are mostly organized into 14 chapters and 2 appendices. The Table of Contents appears below:

I've discovered one mistake in this book. On Page 80, Listing 4-6 presents expression statement b[off + i] = (byte) map[off + i];. Replace map[off + i] with map[b[off + i] & 255]. The & 255 efficiently prevents sign extension so that a negative array index, which would result in an exception, is avoided.

Java I/O, NIO and NIO.2

Publisher: Apress
ISBN13: 978-1-4842-1566-1

Visit one of the following Amazon stores to purchase this book:

Java Threads and the Concurrency Utilities

Java Threads and the Concurrency Utilities is a power-packed and compact book that accelerates your mastery of Java's various thread-oriented APIs. In this book, you'll learn about the low-level Thread API capabilities, including the basics, synchronization, waiting and notification, and the additional capabilities of thread groups, thread local variables, and the Timer Framework. You'll then learn about the high-level concurrency utilities, executors, synchronizers, the Locking Framework, and the additional capabilities of concurrent collections, atomic variables, the Fork/Join Framework, and completion services.

This book's 200+ pages are mostly organized into 8 chapters and 2 appendices. The Table of Contents appears below:

Java Threads and the Concurrency Utilities

Publisher: Apress
ISBN13: 978-1-4842-1699-6

Visit one of the following Amazon stores to purchase this book:

Java XML and JSON

Java XML and JSON is a power-packed and compact book that accelerates your mastery of XML, Java's XML APIs, JSON, and useful third-party JSON APIs. In this book, you'll learn about XML along with the SAX, DOM, StAX, XPath, and XSLT APIs. You'll then learn about JSON along with the mJson, Gson, and JsonPath APIs.

This book's 200+ pages are mostly organized into 10 chapters and 1 appendix. The Table of Contents appears below:

Java XML and JSON

Publisher: Apress
ISBN13: 978-1-4842-1915-7

Visit one of the following Amazon stores to purchase this book: