Brian Burkhalter
Brian Burkhalter
This request follows from previous work outlined in this [nio-dev thread](https://mail.openjdk.org/pipermail/nio-dev/2023-October/015084.html). For a given `Path` `p`, the following invariant obtains: ``` assert p.equals(p.removeExtension().addExtension(p.getExtension())); ``` Replacing an extension may be accomplished...
The UNIX-specific implementation is intentionally omitted for now.
A CSR will be created once there is reasonable consensus on the verbiage in this conversation.
> There are a few builder style APIs for immutable objects that have `withXXX` methods that return an instance with the change requested. Some time back I thought of but...
Part of the point of these methods is to cover the various use cases without ever having to deal directly with a period `"."`.
> A `withExtension(String ext)` could handle the common cases for removing, replacing, and adding an extension. How would this work for the case of "compound extensions" such as `tar.gz` where...
This request could be reformulated as a list of three different topics: 1. the definition of a filename extension; 2. the extraction of the filename extension from a `Path`; and...
Thanks for the suggestion; I think it looks promising. I wonder however whether the notion of `withoutExtension` needs to be explicit. ``` * Path p = withoutExtension(); * if (extension...