Improved File System Interface
NIO.2 improves the file system interface that was previously limited to the java.io.File class. This chapter introduces the improved file system interface’s architecture and shows you how to use the new APIs to accomplish a wide range of file system tasks.
Note A file system manages files, which are classified as regular files, directories, symbolic links (https://en.wikipedia.org/wiki/Symbolic_link), and hard links (https://en.wikipedia.org/wiki/Hard_link).
Architecting a Better File Class
The File-based file system interface is problematic. Several problems are listed here: