Improve optional component retrieval for paths and URIs.

Description

The com.globalmentor.io.Paths utilities need more Optional methods for working with path components. There needs to be a method for retrieving a filename extension from a path. In fact a convenience method to get the filename itself (as a String) would be useful, too, as it's easy to forget that a Path's filename (which is itself a Path) can be null (although not comment).

Also update any URI-related utilities as needed to improve use of Optional.

Environment

None

Assignee

Garret Wilson

Reporter

Garret Wilson

Labels

None

Components

Fix versions

Priority

Major
Configure