About Question enthuware.ocpjp.v8.2.1653 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
javalass
Posts: 54
Joined: Thu Mar 03, 2016 1:26 pm
Contact:

About Question enthuware.ocpjp.v8.2.1653 :

Post 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).

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

javalass
Posts: 54
Joined: Thu Mar 03, 2016 1:26 pm
Contact:

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

Post by javalass »

I think that would be clearer. Thanks for checking.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests