com.ricebridge.csvman.in
Class BasicCsvLoader.LoaderLineListener
java.lang.Object
com.ricebridge.csvman.LineListenerSupportImpl
com.ricebridge.csvman.CustomLineListener
com.ricebridge.csvman.in.BasicCsvLoader.LoaderLineListener
- All Implemented Interfaces:
- LineListener
- Enclosing class:
- BasicCsvLoader
- public static final class BasicCsvLoader.LoaderLineListener
- extends CustomLineListener
Internal Class; stores most recent data line.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_LINE
public String[] EMPTY_LINE
iLine
public String[] iLine
- Most recent data line.
iBadLine
public BadLine iBadLine
- Most recent bad line.
BasicCsvLoader.LoaderLineListener
public BasicCsvLoader.LoaderLineListener()
emptyLine
public void emptyLine()
handleLineImpl
public BadLine handleLineImpl(String[] pLine,
int pNumFields,
long pLineNumber,
String pOriginalLine)
throws Exception
- Store next line of data.
- Specified by:
handleLineImpl in class CustomLineListener
- Parameters:
pLine - String values of data fields in linepNumFields - Number of data fields actually found on the current linepLineNumber - Count of lines processed so far.pOriginalLine - Text of original data line from data source
- Returns:
null if line is OK, BadLine object if line was bad in some way
- Throws:
Exception- See Also:
LineListener.handleLine,
BadLine,
handleBadLineImpl
handleBadLineImpl
public void handleBadLineImpl(BadLine pBadLine)
- Store next bad line.
- Overrides:
handleBadLineImpl in class CustomLineListener
- Parameters:
pBadLine - BadLine object describing the error- See Also:
LineListener.handleBadLine,
handleLineImpl
Copyright © 2003-2006 Ricebridge