com.ricebridge.csvman
Class LineListenerFixer

java.lang.Object
  extended bycom.ricebridge.csvman.LineListenerSupportImpl
      extended bycom.ricebridge.csvman.LineListenerFixer
All Implemented Interfaces:
LineListener

public class LineListenerFixer
extends LineListenerSupportImpl

Compatibility fixer class for previous LineListenerSupport implementations.

In CSV Manager 1.1, custom LineListeners extended LineListenerSupport. This is no longer recommended. LineListeners should now extend CustomLineListener. This fixer class provides a compatibility wrapper around these older LineListeners so that they will still work unchanged with CSV Manager.


Field Summary
protected  LineListenerSupport iLineListenerSupport
          Wrapped LineListenerSupport instance.
 
Constructor Summary
LineListenerFixer(LineListenerSupport pLineListenerSupport)
          Create a new wrapping.
 
Method Summary
protected  void endProcessImpl()
          Compatibility wrapper.
protected  void handleBadLineImpl(BadLine pBadLine)
          Compatibility wrapper.
 BadLine handleLineImpl(String[] pLine, int pNumFields, long pLineNumber, String pOriginalLine)
          Compatibility wrapper.
protected  void setCsvSpecImpl(CsvSpec pCsvSpec)
          Compatibility wrapper.
protected  void setLineSpecImpl(LineSpec pLineSpec)
          Compatibility wrapper.
protected  void startProcessImpl()
          Compatibility wrapper.
 
Methods inherited from class com.ricebridge.csvman.LineListenerSupportImpl
endProcess, handleBadLine, handleLine, setCsvSpec, setLineSpec, startProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iLineListenerSupport

protected LineListenerSupport iLineListenerSupport
Wrapped LineListenerSupport instance.

Constructor Detail

LineListenerFixer

public LineListenerFixer(LineListenerSupport pLineListenerSupport)
Create a new wrapping.

Method Detail

setLineSpecImpl

protected void setLineSpecImpl(LineSpec pLineSpec)
                        throws Exception
Compatibility wrapper.

Specified by:
setLineSpecImpl in class LineListenerSupportImpl
Throws:
Exception

setCsvSpecImpl

protected void setCsvSpecImpl(CsvSpec pCsvSpec)
                       throws Exception
Compatibility wrapper.

Specified by:
setCsvSpecImpl in class LineListenerSupportImpl
Throws:
Exception

startProcessImpl

protected void startProcessImpl()
                         throws Exception
Compatibility wrapper.

Specified by:
startProcessImpl in class LineListenerSupportImpl
Throws:
Exception

endProcessImpl

protected void endProcessImpl()
                       throws Exception
Compatibility wrapper.

Specified by:
endProcessImpl in class LineListenerSupportImpl
Throws:
Exception

handleBadLineImpl

protected void handleBadLineImpl(BadLine pBadLine)
                          throws Exception
Compatibility wrapper.

Specified by:
handleBadLineImpl in class LineListenerSupportImpl
Throws:
Exception

handleLineImpl

public BadLine handleLineImpl(String[] pLine,
                              int pNumFields,
                              long pLineNumber,
                              String pOriginalLine)
Compatibility wrapper.

Specified by:
handleLineImpl in class LineListenerSupportImpl


Copyright © 2003-2006 Ricebridge