public static class FlatFileParser.Data
extends java.lang.Object
FlatFileParser.hasMoreData()
method.FlatFileParser.nextData()
Modifier and Type | Field and Description |
---|---|
private int |
dataLineNo |
private boolean |
emptyIsNull |
private java.lang.String |
line |
private int |
lineNo |
private boolean |
nullIsNull |
private java.lang.String[] |
result |
Modifier | Constructor and Description |
---|---|
private |
FlatFileParser.Data(int lineNo,
int dataLineNo,
java.lang.String line,
java.lang.String[] columns,
boolean emptyIsNull,
boolean nullIsNull)
Create a new data object.
|
Modifier and Type | Method and Description |
---|---|
int |
columns()
The number of columns as determined by the
FlatFileParser.setDataSplitterRegexp(Pattern)
regular expression. |
java.lang.String[] |
data()
The data line as an array of strings.
|
int |
dataLineNo()
The line number of the data in the current section.
|
java.lang.String |
get(int index)
Get the value in the specified column.
|
java.lang.String |
line()
The entire line as it was read from the input stream.
|
int |
lineNo()
The line number of the data in the input stream.
|
java.lang.String |
toString() |
private final int lineNo
private final int dataLineNo
private final java.lang.String[] result
private final java.lang.String line
private final boolean emptyIsNull
private final boolean nullIsNull
private FlatFileParser.Data(int lineNo, int dataLineNo, java.lang.String line, java.lang.String[] columns, boolean emptyIsNull, boolean nullIsNull)
public java.lang.String toString()
toString
in class java.lang.Object
public int lineNo()
public int dataLineNo()
public java.lang.String line()
public int columns()
FlatFileParser.setDataSplitterRegexp(Pattern)
regular expression.public java.lang.String get(int index)
index
- The index for the column, starting at 0public java.lang.String[] data()