public abstract class NumericDataParser extends java.lang.Object implements DataParser
Constructor and Description |
---|
NumericDataParser()
Create a new numeric data parser
|
NumericDataParser(boolean first_column_date)
Create a new numeric data parser, with the information that the first
column is in date format.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
checkNumberFormat(java.lang.String format)
Check whether this String represents a number
|
boolean |
isValid(java.lang.String data,
int index)
Check whether a data value with a specific index number is valid or not
|
public NumericDataParser()
public NumericDataParser(boolean first_column_date)
first_column_date
- Whether the first column is in date formatpublic boolean isValid(java.lang.String data, int index)
isValid
in interface DataParser
data
- The numerical data to checkindex
- The index of the specified dataprotected abstract boolean checkNumberFormat(java.lang.String format)
format
- the String containing the number