|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.parser.FlatFileParser.Data
public static class FlatFileParser.Data
This class holds data about a line parsed by the FlatFileParser.hasMoreData()
method.
FlatFileParser.nextData()
Field Summary | |
---|---|
private int |
dataLineNo
|
private boolean |
emptyIsNull
|
private String |
line
|
private int |
lineNo
|
private boolean |
nullIsNull
|
private String[] |
result
|
Constructor Summary | |
---|---|
private |
FlatFileParser.Data(int lineNo,
int dataLineNo,
String line,
String[] columns,
boolean emptyIsNull,
boolean nullIsNull)
Create a new data object. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int lineNo
private final int dataLineNo
private final String[] result
private final String line
private final boolean emptyIsNull
private final boolean nullIsNull
Constructor Detail |
---|
private FlatFileParser.Data(int lineNo, int dataLineNo, String line, String[] columns, boolean emptyIsNull, boolean nullIsNull)
Method Detail |
---|
public String toString()
toString
in class Object
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 0
public String[] data()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |