org.mindswap.pellet.utils
Class PatternFilter
java.lang.Object
org.mindswap.pellet.utils.PatternFilter
- All Implemented Interfaces:
- java.io.FileFilter
public class PatternFilter
- extends java.lang.Object
- implements java.io.FileFilter
File filter implementation that filters by pattern matching on the file name using
regular expressions. Two patterns are specified. A file is accepted if its name
matches the first pattern and does NOT match the second pattern.
- Author:
- Evren Sirin
Method Summary |
boolean |
accept(java.io.File file)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternFilter
public PatternFilter(java.lang.String match)
PatternFilter
public PatternFilter(java.lang.String match,
java.lang.String noMatch)
accept
public boolean accept(java.io.File file)
- Specified by:
accept
in interface java.io.FileFilter
Copyright © 2004 Evren Sirin. All Rights Reserved.