loci.formats
Class NumberFilter

java.lang.Object
  extended by loci.formats.NumberFilter
All Implemented Interfaces:
FileFilter

public class NumberFilter
extends Object
implements FileFilter

NumberFilter is a helper filter for FilePattern.findPattern().

Source code:
Trac, SVN


Constructor Summary
NumberFilter(String pre, String post)
          Creates a filter for files containing a numerical block, sandwiched between the given strings.
 
Method Summary
 boolean accept(File pathname)
          Tests if a specified file should be included in a file list.
 boolean accept(String name)
          Tests if a specified file should be included in a file list.
 BigInteger getNumber(String name)
          Gets numbers filling the asterisk positions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFilter

public NumberFilter(String pre,
                    String post)
Creates a filter for files containing a numerical block, sandwiched between the given strings.

Method Detail

getNumber

public BigInteger getNumber(String name)
Gets numbers filling the asterisk positions.


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:
accept in interface FileFilter