com.ricebridge.csvman
Class DebugFieldListener

java.lang.Object
  extended bycom.ricebridge.csvman.FieldListenerSupport
      extended bycom.ricebridge.csvman.DebugFieldListener
All Implemented Interfaces:
FieldListener

public class DebugFieldListener
extends FieldListenerSupport

DEPRECATED — DO NOT USE. A simple implementation of FieldListener that provides debugging output.

Status messages for various events are sent to a PrintStream (by default, System.out, but you can change this with setPrintStream(java.io.PrintStream)).

The main purpose of this class is simply to demonstrate how to write a FieldListener.

The Source Code of this Java class is available under a BSD-style license.


Constructor Summary
DebugFieldListener()
          Deprecated.  
 
Method Summary
 void addFieldImpl(String pValue)
          Deprecated. Implement this method to receive each data field as it is loaded.
 void badLineImpl(BadLine pBadLine)
          Deprecated. Implement this method to be notified when badly formatted data is encountered.
 BadLine endLineImpl(String pOriginalLine, long pLineNumber)
          Deprecated. Implement this method to be notified of the end of each data line.
 void endLoadImpl()
          Deprecated. Implement this method to receive notification that loading of CSV data has ended.
 void setPrintStream(PrintStream pPrintStream)
          Deprecated. Set the PrintStream to which status messages are written.
 void startLoadImpl()
          Deprecated. 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, endLineImpl, endLoad, startLoad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugFieldListener

public DebugFieldListener()
Deprecated. 
Method Detail

startLoadImpl

public void startLoadImpl()
Deprecated. 
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()
Deprecated. 
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)
Deprecated. 
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)

endLineImpl

public BadLine endLineImpl(String pOriginalLine,
                           long pLineNumber)
Deprecated. 
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)

badLineImpl

public void badLineImpl(BadLine pBadLine)
Deprecated. 
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)

setPrintStream

public void setPrintStream(PrintStream pPrintStream)
Deprecated. 
Set the PrintStream to which status messages are written.



Copyright © 2003-2006 Ricebridge