RFR: 8298318: (fs) APIs for handling filename extensions [v4]

Brian Burkhalter bpb at openjdk.org
Wed Mar 6 23:41:05 UTC 2024


> 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

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/16226/files
  - new: https://git.openjdk.org/jdk/pull/16226/files/b7f00bb3..caeb1f14

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=16226&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16226&range=02-03

  Stats: 93 lines in 1 file changed: 0 ins; 92 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/16226.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16226/head:pull/16226

PR: https://git.openjdk.org/jdk/pull/16226


More information about the nio-dev mailing list