|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.townleyenterprises.io.AbstractLineProcessor
This class is used to provide default implementations for the methods in the LineProcessor interface. It also keeps track of the count of lines processed.
| Constructor Summary | |
AbstractLineProcessor()
|
|
| Method Summary | |
int |
getLineCount()
This method returns the number of lines processed since the last reset. |
void |
processLine(java.lang.String line)
This method gets called for each line processed containing the text of the line. |
void |
reset()
This method gets called to reset any internal state maintained by the instance prior to starting any input. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractLineProcessor()
| Method Detail |
public void processLine(java.lang.String line)
throws java.lang.Exception
processLine in interface LineProcessorline - the line of the input file
java.lang.Exception - if an error occurs processing the linepublic void reset()
reset in interface LineProcessorpublic int getLineCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||