public class NumberFilter extends Object implements FileFilter
Modifier and Type | Field and Description |
---|---|
private String |
post
String appearing after the numerical block.
|
private String |
pre
String appearing before the numerical block.
|
Constructor and Description |
---|
NumberFilter(String pre,
String post)
Creates a filter for files containing a numerical block,
sandwiched between the given strings.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private String pre
private String post
public BigInteger getNumber(String name)
public boolean accept(String name)
public boolean accept(File pathname)
accept
in interface FileFilter
Copyright © 2016 Open Microscopy Environment