Module io.scif
Package io.scif

Class NumberFilter

  • All Implemented Interfaces:
    FileFilter

    public class NumberFilter
    extends Object
    implements FileFilter
    NumberFilter is a helper filter for FilePattern.findPattern().
    • 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 Integer 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