|
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.Line
public static class FlatFileParser.Line
This class holds data about a line parsed by the FlatFileParser.parseHeaders()
method.
FlatFileParser.getLine(int)
Field Summary | |
---|---|
private String |
line
|
private int |
lineNo
|
private String |
name
|
private FlatFileParser.LineType |
type
|
private String |
value
|
Constructor Summary | |
---|---|
private |
FlatFileParser.Line(int lineNo,
String line,
FlatFileParser.LineType type)
Create a new line object. |
private |
FlatFileParser.Line(int lineNo,
String line,
String name,
FlatFileParser.LineType type)
Create a new section line object. |
private |
FlatFileParser.Line(int lineNo,
String line,
String name,
String value)
Create a new header line object. |
Method Summary | |
---|---|
String |
line()
The entire line as it was read from the input stream. |
int |
lineNo()
The line number of this line in the input stream. |
String |
name()
The name of the header if the line is a header line. |
String |
toString()
|
FlatFileParser.LineType |
type()
The type of the line as determined by the FlatFileParser.parseHeaders() method. |
String |
value()
The value of the header if the line is a header line. |
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 String line
private final FlatFileParser.LineType type
private final String name
private final String value
Constructor Detail |
---|
private FlatFileParser.Line(int lineNo, String line, FlatFileParser.LineType type)
private FlatFileParser.Line(int lineNo, String line, String name, FlatFileParser.LineType type)
private FlatFileParser.Line(int lineNo, String line, String name, String value)
Method Detail |
---|
public String toString()
toString
in class Object
public int lineNo()
public String line()
public FlatFileParser.LineType type()
FlatFileParser.parseHeaders()
method. The value is
one of the values in the FlatFileParser.LineType
enumeration.
public String name()
public String value()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |