concept redundancy in category java

appears as: redundcies, redundcy
The Well-Grounded Java Developer

This is an excerpt from Manning's book The Well-Grounded Java Developer.

Table 2.1. Key foundation classes for learning file I/O

Class

Description

Path The Path class includes methods that can be used to obtain information about the path, to access elements of the path, to convert the path to other forms, or to extract portions of a path. There are also methods for matching the path string and for removing redundancies in a path.
Paths A utility class that provides helper methods to return a path, such as get(String first, String... more) and get(URI uri).
FileSystem The class that interfaces with the filesystem, whether that be the default filesystem or an alternative filesystem retrieved by its uniform resource identifier (URI).
FileSystems A utility class that provides various methods, such as one that returns the default filesystem, FileSystems.getDefault().

Other types of redundancy can also occur when evaluating a Path, such as a symbolic link (which we’ll cover in section 2.4.3). For example, suppose you’re on a *nix OS and you’re looking for information on a log file called log1.txt under a /usr/logs directory. But that /usr/logs directory is in fact a symbolic link to /application/logs, the real location of the log file. Because you want to know the real location, you’ll want to remove the redundant symbolic information.

All of these types of redundancy can result in a Path not leading to the file location you think it’s pointing to.