Java
NIO的PathMatcher提供FileSystem.getPathMatcher(String语法AndPattern):
PathMatcher matcher = FileSystems.getDefault().getPathMatcher("glob:*.java");Path filename = ...;if (matcher.matches(filename)) { System.out.println(filename);}有关详细信息,请参见“
查找文件”教程。



