|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.csvman.LineListenerSupportImpl
Helper class for implementing the LineListener interface.
Please do not extend this class directly. CustomLineListener extends this class, and
CustomLineListener is the class you should should extend when implementing your own
LineListeners. This class only provides internal error checking.
Compatibility note: This class will replace LineListenerSupport in CSV Manager 2.x.
The current LineListenerSupport class in CSV Manager 1.x is a compatibility
class for existing customers with custom LineListeners, and should not be used for new
code. If this means nothing to you, just remember that the golden rule is
"use CustomLineListener, and things will just work."
The Source Code of this Java class is available under a BSD-style license.
LineListener,
LineListenerSupport,
CustomLineListener| Constructor Summary | |
LineListenerSupportImpl()
|
|
| Method Summary | |
void |
endProcess()
Helper implementation of LineListener.endProcess |
protected abstract void |
endProcessImpl()
The default implementation of this method is provided by CustomLineListener |
void |
handleBadLine(BadLine pBadLine)
Helper implementation of LineListener.handleBadLine |
protected abstract void |
handleBadLineImpl(BadLine pBadLine)
The default implementation of this method is provided by CustomLineListener |
BadLine |
handleLine(String[] pLine,
int pNumFields,
long pLineNumber,
String pOriginalLine)
Helper implementation of LineListener.handleLine |
protected abstract BadLine |
handleLineImpl(String[] pLine,
int pNumFields,
long pLineNumber,
String pOriginalLine)
The default implementation of this method is provided by CustomLineListener |
void |
setCsvSpec(CsvSpec pCsvSpec)
Helper implementation of LineListener#setCsvSpec. |
protected abstract void |
setCsvSpecImpl(CsvSpec pCsvSpec)
The default implementation of this method is provided by CustomLineListener |
void |
setLineSpec(LineSpec pLineSpec)
Helper implementation of LineListener#setLineSpec. |
protected abstract void |
setLineSpecImpl(LineSpec pLineSpec)
The default implementation of this method is provided by CustomLineListener |
void |
startProcess()
Helper implementation of LineListener.startProcess |
protected abstract void |
startProcessImpl()
The default implementation of this method is provided by CustomLineListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LineListenerSupportImpl()
| Method Detail |
public void setCsvSpec(CsvSpec pCsvSpec)
LineListener#setCsvSpec.
setCsvSpec in interface LineListenerpCsvSpec - CsvSpec objectpublic void setLineSpec(LineSpec pLineSpec)
LineListener#setLineSpec.
setLineSpec in interface LineListenerpLineSpec - LineSpec objectpublic void startProcess()
LineListener.startProcess
startProcess in interface LineListenerLineListener.endProcess()public void endProcess()
LineListener.endProcess
endProcess in interface LineListenerLineListener.startProcess()
public BadLine handleLine(String[] pLine,
int pNumFields,
long pLineNumber,
String pOriginalLine)
LineListener.handleLine
handleLine in interface LineListenerpLine - line data as textpNumFields - number of data fields foundpLineNumber - line number index, counting from 1pOriginalLine - original line of data
null if line is OK, BadLine object if line was bad in some waypublic void handleBadLine(BadLine pBadLine)
LineListener.handleBadLine
handleBadLine in interface LineListenerpBadLine - BadLine object describing problem
protected abstract void setCsvSpecImpl(CsvSpec pCsvSpec)
throws Exception
CustomLineListener
Exception
protected abstract void setLineSpecImpl(LineSpec pLineSpec)
throws Exception
CustomLineListener
Exception
protected abstract void startProcessImpl()
throws Exception
CustomLineListener
Exception
protected abstract void endProcessImpl()
throws Exception
CustomLineListener
Exception
protected abstract void handleBadLineImpl(BadLine pBadLine)
throws Exception
CustomLineListener
Exception
protected abstract BadLine handleLineImpl(String[] pLine,
int pNumFields,
long pLineNumber,
String pOriginalLine)
throws Exception
CustomLineListener
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||