RFR: 8298318: (fs) APIs for handling filename extensions [v4]
Brian Burkhalter
bpb at openjdk.org
Thu Mar 7 16:25:56 UTC 2024
On Wed, 6 Mar 2024 23:41:05 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Add to `java.nio.file.Path` a method `getExtension` to retrieve the `Path`'s extension, and companion methods `removeExtension` and `addExtension`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8298318: Remove vestigial trim() call and commented out methods
Intentionally omitted from the recent commit b7f00bb37a99a6ec7c6ff4b2bfa3c914b028925b are:
- specialization for Unix using internal `byte[]` representation of path;
- conversion of test to JUnit 5.
These changes will be made if / when the proposal is otherwise accepted.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16226#issuecomment-1983910450
More information about the nio-dev
mailing list