-
Enhancement
-
Resolution: Unresolved
-
P4
-
14
A DESCRIPTION OF THE PROBLEM :
The support for Globs in java.nio.file.PathMatcher is nice, but there are cases where a Glob pattern would be necessary and not depend on the default underlying FileSystem.
For example, matching host names against a list of non-proxy hosts.
The JDK offers the sun.nio.fs.Globs to convert a Glob expression into a Regex that can be compiled to a java.util.regex.Pattern. It would be great if that functionality were public (as a new method in java.util.regex.Pattern or a new java.util.regex.Globs class based on the JDK class)
The support for Globs in java.nio.file.PathMatcher is nice, but there are cases where a Glob pattern would be necessary and not depend on the default underlying FileSystem.
For example, matching host names against a list of non-proxy hosts.
The JDK offers the sun.nio.fs.Globs to convert a Glob expression into a Regex that can be compiled to a java.util.regex.Pattern. It would be great if that functionality were public (as a new method in java.util.regex.Pattern or a new java.util.regex.Globs class based on the JDK class)