FileSystem.getNameMatcher()

Rémi Forax forax at univ-mlv.fr
Tue Oct 28 18:27:37 PDT 2008


Hi alan, hi all,
I have some questions about FileSystem.getNameMatcher() :
First its name, i would prefer something like getNamePathMatcher(),
after all it returns a PathMatcher.
Why getNameMatcher doesn't  reuse the  same design than setOptions()
to specify the syntax i.e.

interface Syntax {
  String name();
}
public enum StandardSyntax {
  glob, regex
}

PathMatcher getNameMatcher(Syntax syntax, String regex) {
  ...
}

cheers,
Rémi



More information about the nio-dev mailing list