Chapter 10

image

New Input/Output 2

In this chapter, you will learn

  • What New Input/Output 2 is
  • How to work with a file system and file store
  • How to represent a platform-dependent abstract pathname using a Path
  • How to perform different file operations on a Path object
  • How to traverse a file tree
  • How to manage file attributes
  • How to watch a directory for changes
  • How to perform asynchronous file I/O operations

What Is New Input/Output 2?

Java 7 introduced New Input/Output 2 (NIO.2) API, which provides a new I/O API. It provides many features that were lacking in the original File I/O API. The features provided in NIO.2 are essential for working with ...

Get Beginning Java 8 Language Features: Lambda Expressions, Inner Classes, Th reads, I/O, Collections,and Streams 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.