This class provides a convenient way of working with paths. It supports the common path formats:
This is the leading part of the path that is not part of the file name and the extension.
Does not end with a
If the path has no directory, the value is null.
The file extension.
It is separated from the file name by a dot. This dot is not part of the extension.
If the path has no extension, the value is null.
Returns the directory of
If the directory is null, the empty String
"" is returned.
path is null, the result is unspecified.