Page 1 of 1

About Question enthuware.ocpjp.v8.2.1653 :

Posted: Mon Apr 04, 2016 6:07 am
by javalass
Which of the following is true about the PathMatcher returned by FileSystem.getPathMatcher()?
Answer:
It can work with regular expressions as well as glob patterns.
Technically, the PathMatcher returned by FileSystem.getPathMatcher() can only work with one or the other (whichever one was passed to the static factory method).

Re: About Question enthuware.ocpjp.v8.2.1653 :

Posted: Mon Apr 04, 2016 10:19 pm
by admin
That is true but from that perspective it cannot work with any pattern except the one that was passed to the getPathMatcher method. So the statement wouldn't make sense at all.

I have updated it to "It can match Paths using a regular expression or a glob pattern depending on how it is acquired".

thank you for your feedback!
Paul.

Re: About Question enthuware.ocpjp.v8.2.1653 :

Posted: Tue Apr 05, 2016 9:14 am
by javalass
I think that would be clearer. Thanks for checking.