August 2020
Intermediate to advanced
1296 pages
30h 50m
English
In Chapter 19, “I/O,” we presented the java.io API and discussed how to use it to interact with files and streams. In this chapter, we focus on the java.nio version 2 API, or NIO.2 for short, to interact with files. NIO.2 is an acronym that stands for the second version of the Non‐blocking Input/Output API, and it is sometimes referred to as the “New I/O.”
In this chapter, we will show how NIO.2 allows us to do a lot more with files and directories than the original java.io API. ...
Read now
Unlock full access