public final class ClamFilter
extends java.lang.Object
implements java.io.FilenameFilter
Constructor and Description |
---|
ClamFilter(boolean invert,
java.lang.String mustStartWith,
java.lang.String mustEndWith)
constructor
|
ClamFilter(java.lang.String mustStartWith,
java.lang.String mustEndWith)
constructor
|
public ClamFilter(java.lang.String mustStartWith, java.lang.String mustEndWith)
mustStartWith
- string the filename must start withmustEndWith
- string the filename must end with, usually of form ".html" including the dot.public ClamFilter(boolean invert, java.lang.String mustStartWith, java.lang.String mustEndWith)
invert
- if true, selects files not in the range instead.mustStartWith
- string the filename must start withmustEndWith
- string the filename must end with, usually of form ".html" including the dot.public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
dir
- the directory in which the file was found.name
- the name of the filepublic static void main(java.lang.String[] args)
args
- not used