类 GlobFilenameFilter
java.lang.Object
org.apache.oro.io.RegexFilenameFilter
org.apache.oro.io.GlobFilenameFilter
- 所有已实现的接口:
FileFilter,FilenameFilter
GlobFilenameFilter is a RegexFilenameFilter subclass that filters on Glob
regular expressions as implemented by the org.apache.oro.text package,
which is required to use this class.
- 从以下版本开始:
- 1.0
- 版本:
- ,
- 另请参阅:
-
构造器概要
构造器构造器说明Same as GlobFilenameFilter("");GlobFilenameFilter(String regex) Same as GlobFilenameFilter(regex, GlobCompiler.DEFAULT_MASK);GlobFilenameFilter(String regex, int options) Construct a filter initialized with the indicated regular expression and accompanying compilation options conforming to those used byorg.apache.oro.text.GlobCompiler -
方法概要
从类继承的方法 org.apache.oro.io.RegexFilenameFilter
accept, accept, setFilterExpression, setFilterExpression
-
构造器详细资料
-
GlobFilenameFilter
Construct a filter initialized with the indicated regular expression and accompanying compilation options conforming to those used byorg.apache.oro.text.GlobCompiler- 参数:
regex- The regular expression on which to filter.options- A set of compilation options.- 抛出:
MalformedCachePatternException- If there is an error in compiling the regular expression. This need not be caught if you are using a hard-coded expression that you know is correct. But for robustness and reliability you should catch this exception for dynamically entered expressions determined at runtime.
-
GlobFilenameFilter
Same as GlobFilenameFilter(regex, GlobCompiler.DEFAULT_MASK); -
GlobFilenameFilter
public GlobFilenameFilter()Same as GlobFilenameFilter("");
-