Book description
Java I/O, NIO, and NIO.2 is a power-packed 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.
After reading and using thi book, you'll gain the accelerated knowledge and skill level to really build applications with efficient data access, especially for today's cloud computing streaming data needs.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewers
- Acknowledgments
- Introduction
- Part I: Getting Started with I/O
-
Part II: Classic I/O APIs
-
Chapter 2: File
- Constructing File Instances
- Learning About Stored Abstract Paths
- Learning About a Path’s File or Directory
- Listing File System Root Directories
- Obtaining Disk Space Information
- Listing Directories
- Creating/Modifying Files and Directories
- Setting and Getting Permissions
- Exploring Miscellaneous Capabilities
- Summary
- Chapter 3: RandomAccessFile
-
Chapter 4: Streams
- Stream Classes Overview
-
Touring the Stream Classes
- OutputStream and InputStream
- ByteArrayOutputStream and ByteArrayInputStream
- FileOutputStream and FileInputStream
- PipedOutputStream and PipedInputStream
- FilterOutputStream and FilterInputStream
- BufferedOutputStream and BufferedInputStream
- DataOutputStream and DataInputStream
- Object Serialization and Deserialization
- PrintStream
- Revisiting Standard I/O
- Summary
- Chapter 5: Writers and Readers
-
Chapter 2: File
- Part III: New I/O APIs
- Part IV: More New I/O APIs
-
Part V: Appendices
-
Appendix A: Answers to Exercises
- Chapter 1: I/O Basics and APIs
- Chapter 2: File
- Chapter 3: RandomAccessFile
- Chapter 4: Streams
- Chapter 5: Writers and Readers
- Chapter 6: Buffers
- Chapter 7: Channels
- Chapter 8: Selectors
- Chapter 9: Regular Expressions
- Chapter 10: Charsets
- Chapter 11: Formatter
- Chapter 12: Improved File System Interface
- Chapter 13: Asynchronous I/O
- Chapter 14: Completion of Socket Channel Functionality
- Appendix B: Sockets and Network Interfaces
-
Appendix A: Answers to Exercises
- Index
Product information
- Title: Java I/O, NIO and NIO.2
- Author(s):
- Release date: October 2015
- Publisher(s): Apress
- ISBN: 9781484215654
You might also like
video
Java 8 Fundamentals: Modern Java Development with Lambdas, Streams, and Introducing Java 9’s JShell and the Java Platform Module System (JPMS)
54+ hours of video instruction. Overview The professional programmer’s Deitel® video guide to Java™ SE 7 …
book
Java 8 in Action
Java 8 in Action is a clearly written guide to the new features of Java 8. …
book
Reactive Systems in Java
Reactive systems and event-driven architecture are becoming indispensable to application design, and companies are taking note. …
video
Java SE 17 Developer (1Z0-829)
21+ Hours of Video Instruction An intensive and guided video course to learn and practice while …