public class RowEvaluator
extends java.lang.Object
submitRow(java.util.List<java.lang.String>)
the evaluator can refine its
idea of what kind of data is represented by each column.Modifier and Type | Class and Description |
---|---|
static class |
RowEvaluator.Decoder
Interface for an object that can turn a string into a cell content
object.
|
static class |
RowEvaluator.Metadata
Helper class used to group quantities which describe what the
data types found in the columns of a table are.
|
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
ISO8601_REGEX
Regular expression for ISO 8601 dates.
|
Constructor and Description |
---|
RowEvaluator()
Constructs a new RowEvaluator which will work out the number of
columns from the data.
|
RowEvaluator(int ncol)
Constructs a new RowEvaluator which will examine rows with a
fixed number of columns.
|
Modifier and Type | Method and Description |
---|---|
RowEvaluator.Metadata |
getMetadata()
Returns information gleaned from previous submitRow
calls about the kind of data that appears to be in the columns.
|
void |
submitRow(java.util.List<java.lang.String> row)
Looks at a given row (list of strings) and records information about
what sort of things it looks like it contains.
|
public static final java.util.regex.Pattern ISO8601_REGEX
public RowEvaluator()
public RowEvaluator(int ncol)
ncol
- column countpublic void submitRow(java.util.List<java.lang.String> row) throws TableFormatException
row
- ncol-element list of stringsTableFormatException
- if the number of elements in
row is not the same as on the first callpublic RowEvaluator.Metadata getMetadata()