RFR 8057113: (fs) Path should have a method to test the filename extension
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.
One question is whether the extension should instead be specified in terms of the *normalized* path. This is how the code already behaves.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev