|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.parsers.TextEvent
public class TextEvent
Wrapper for a single record in a text delimited data source.
A record can consist of many fields. This class acts as a wrapper for all the fields in the record. The class also provides some metadata regarding the data source.
Constructor Summary | |
---|---|
TextEvent()
Default constructor. |
Method Summary | |
---|---|
void |
add(java.lang.String data)
Adds a field to this event. |
java.lang.String |
getAt(int index)
Returns the element at the given index. |
int |
getFieldCount()
Returns the number of fields in this event. |
int |
getLineNumber()
Returns the line number of the record that this event denotes. |
void |
setLineNumber(int lineNo)
Sets the line number of the record that this event denotes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextEvent()
Method Detail |
---|
public void add(java.lang.String data)
data
- String containing the field value.public java.lang.String getAt(int index)
index
- int pointing the the required field data.
public int getFieldCount()
public int getLineNumber()
public void setLineNumber(int lineNo)
lineNo
- int containing the line number of the record that this
event denotes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |