com.ricebridge.csvman.test
Class CsvManagerTest.TestFieldListener

java.lang.Object
  extended bycom.ricebridge.csvman.FieldListenerSupport
      extended bycom.ricebridge.csvman.test.CsvManagerTest.TestFieldListener
All Implemented Interfaces:
FieldListener
Enclosing class:
CsvManagerTest

public static class CsvManagerTest.TestFieldListener
extends FieldListenerSupport

Text FieldListener


Field Summary
 StringBuffer badlines
           
 StringBuffer buffer
           
 boolean failon3
           
 long linecount
           
 StringBuffer origbuf
           
 
Constructor Summary
CsvManagerTest.TestFieldListener()
           
 
Method Summary
 void addFieldImpl(String pValue)
          Implement this method to receive each data field as it is loaded.
 void badLineImpl(BadLine pBadLine)
          Implement this method to be notified when badly formatted data is encountered.
 BadLine endLineImpl()
          DO NOT USE THIS METHOD.
 BadLine endLineImpl(String pOriginalLine, long pLineNumber)
          Implement this method to be notified of the end of each data line.
 void endLoadImpl()
          Implement this method to receive notification that loading of CSV data has ended.
 void startLoadImpl()
          Implement this method to receive notification that loading of CSV data is about to start.
 
Methods inherited from class com.ricebridge.csvman.FieldListenerSupport
addField, badLine, endLine, endLoad, startLoad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linecount

public long linecount

buffer

public StringBuffer buffer

badlines

public StringBuffer badlines

origbuf

public StringBuffer origbuf

failon3

public boolean failon3
Constructor Detail

CsvManagerTest.TestFieldListener

public CsvManagerTest.TestFieldListener()
Method Detail

startLoadImpl

public void startLoadImpl()
Description copied from class: FieldListenerSupport
Implement this method to receive notification that loading of CSV data is about to start.

Overrides:
startLoadImpl in class FieldListenerSupport

endLoadImpl

public void endLoadImpl()
Description copied from class: FieldListenerSupport
Implement this method to receive notification that loading of CSV data has ended.

Overrides:
endLoadImpl in class FieldListenerSupport

addFieldImpl

public void addFieldImpl(String pValue)
Description copied from class: FieldListenerSupport
Implement this method to receive each data field as it is loaded.

Specified by:
addFieldImpl in class FieldListenerSupport
Parameters:
pValue - String value of data field
See Also:
FieldListener.addField(java.lang.String)

badLineImpl

public void badLineImpl(BadLine pBadLine)
Description copied from class: FieldListenerSupport
Implement this method to be notified when badly formatted data is encountered.

Specified by:
badLineImpl in class FieldListenerSupport
See Also:
FieldListener.badLine(com.ricebridge.csvman.BadLine)

endLineImpl

public BadLine endLineImpl()
Description copied from class: FieldListenerSupport
DO NOT USE THIS METHOD. Included for compatibility up to release 1.1.1. This method will be removed in version 1.2.

Overrides:
endLineImpl in class FieldListenerSupport

endLineImpl

public BadLine endLineImpl(String pOriginalLine,
                           long pLineNumber)
Description copied from class: FieldListenerSupport
Implement this method to be notified of the end of each data line.

Overrides:
endLineImpl in class FieldListenerSupport
See Also:
FieldListener.endLine(java.lang.String, long)


Copyright © 2003-2006 Ricebridge