- java.lang.Object
-
- io.scif.NumberFilter
-
- All Implemented Interfaces:
FileFilter
public class NumberFilter extends Object implements FileFilter
NumberFilter is a helper filter for FilePattern.findPattern().
-
-
Constructor Summary
Constructors Constructor Description NumberFilter(String pre, String post)Creates a filter for files containing a numerical block, sandwiched between the given strings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(File pathname)Tests if a specified file should be included in a file list.booleanaccept(String name)Tests if a specified file should be included in a file list.IntegergetNumber(String name)Gets numbers filling the asterisk positions.
-
-
-
Method Detail
-
accept
public boolean accept(String name)
Tests if a specified file should be included in a file list.
-
accept
public boolean accept(File pathname)
Tests if a specified file should be included in a file list.- Specified by:
acceptin interfaceFileFilter
-
-