public class NumberFilter
extends java.lang.Object
implements java.io.FileFilter
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
post
String appearing after the numerical block.
|
private java.lang.String |
pre
String appearing before the numerical block.
|
Constructor and Description |
---|
NumberFilter(java.lang.String pre,
java.lang.String post)
Creates a filter for files containing a numerical block,
sandwiched between the given strings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File pathname)
Tests if a specified file should be included in a file list.
|
boolean |
accept(java.lang.String name)
Tests if a specified file should be included in a file list.
|
java.math.BigInteger |
getNumber(java.lang.String name)
Gets numbers filling the asterisk positions.
|
private java.lang.String pre
private java.lang.String post
public NumberFilter(java.lang.String pre, java.lang.String post)
public java.math.BigInteger getNumber(java.lang.String name)
public boolean accept(java.lang.String name)
public boolean accept(java.io.File pathname)
accept
in interface java.io.FileFilter
Copyright © 2017 Open Microscopy Environment