public static class FlatFileParser.Data extends Object
FlatFileParser.hasMoreData()
method.FlatFileParser.nextData()
Modifier and Type | Field and Description |
---|---|
private int |
dataLineNo |
private boolean |
emptyIsNull |
private String |
line |
private int |
lineNo |
private boolean |
nullIsNull |
private String[] |
result |
Modifier | Constructor and Description |
---|---|
private |
Data(int lineNo,
int dataLineNo,
String line,
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. |
String[] |
data()
The data line as an array of strings.
|
int |
dataLineNo()
The line number of the data in the current section.
|
String |
get(int index)
Get the value in the specified column.
|
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.
|
String |
toString() |
private final int lineNo
private final int dataLineNo
private final String[] result
private final String line
private final boolean emptyIsNull
private final boolean nullIsNull
public int lineNo()
public int dataLineNo()
public String line()
public int columns()
FlatFileParser.setDataSplitterRegexp(Pattern)
regular expression.public String get(int index)
index
- The index for the column, starting at 0public String[] data()