RFR 8057113: (fs) Path should have a method to test the filename extension
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Feb 16 02:53:37 UTC 2018
On Feb 15, 2018, at 12:50 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>> Perhaps the implementation can avoid actually creating a new Path and just look
>> at the last element to extract the extension
>
> That’s what I was thinking as well inspired by Daniel’s comment.
Here is an updated version which changes the specification and implementation to define things in terms of the file name element instead of the entire Path.
http://cr.openjdk.java.net/~bpb/8057113/webrev.02/
One question is whether the extension should instead be specified in terms of the *normalized* path. This is how the code already behaves.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20180215/8e063cde/attachment.html>
More information about the nio-dev
mailing list