com.ricebridge.csvman
Class FieldListenerSupport

java.lang.Object
  extended bycom.ricebridge.csvman.FieldListenerSupport
All Implemented Interfaces:
FieldListener
Direct Known Subclasses:
CsvManagerTest.TestFieldListener, DebugFieldListener

public abstract class FieldListenerSupport
extends Object
implements FieldListener

DEPRECATED — DO NOT USE. Helper class for implementing the FieldListener interface.

Use of this class will help ensure future compatibility with any CSV Manager API changes. Subclasses should implement the *Impl methods (for example, addFieldImpl(java.lang.String), rather than the declared interface methods such as addField(java.lang.String).

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


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

Constructor Detail

FieldListenerSupport

public FieldListenerSupport()
Deprecated. 
Method Detail

startLoad

public void startLoad()
Deprecated. 
Helper implementation of FieldListener.startLoad(). Subclasses should implement startLoadImpl().

Specified by:
startLoad in interface FieldListener
See Also:
FieldListener.endLoad()

endLoad

public void endLoad()
Deprecated. 
Helper implementation of FieldListener.endLoad(). Subclasses should implement endLoadImpl().

Specified by:
endLoad in interface FieldListener
See Also:
FieldListener.startLoad()

addField

public void addField(String pValue)
Deprecated. 
Helper implementation of FieldListener.addField(java.lang.String). Subclasses should implement addFieldImpl(java.lang.String).

Specified by:
addField in interface FieldListener
Parameters:
pValue - field data as text

endLine

public BadLine endLine(String pOriginalLine,
                       long pLineNumber)
Deprecated. 
Helper implementation of FieldListener.endLine(java.lang.String, long). Subclasses should implement endLineImpl(java.lang.String, long).

Specified by:
endLine in interface FieldListener
Parameters:
pLineNumber - line number index, counting from 1
pOriginalLine - original line of data
Returns:
null if line is OK, BadLine object if line was bad in some way

badLine

public void badLine(BadLine pBadLine)
Deprecated. 
Helper implementation of FieldListener.badLine(com.ricebridge.csvman.BadLine). Subclasses should implement badLineImpl(com.ricebridge.csvman.BadLine).

Specified by:
badLine in interface FieldListener
Parameters:
pBadLine - BadLine object describing problem
See Also:
LineListener.handleBadLine(com.ricebridge.csvman.BadLine)

startLoadImpl

public void startLoadImpl()
                   throws Exception
Deprecated. 
Implement this method to receive notification that loading of CSV data is about to start.

Throws:
Exception

endLoadImpl

public void endLoadImpl()
                 throws Exception
Deprecated. 
Implement this method to receive notification that loading of CSV data has ended.

Throws:
Exception

addFieldImpl

public abstract void addFieldImpl(String pValue)
                           throws Exception
Deprecated. 
Implement this method to receive each data field as it is loaded.

Parameters:
pValue - String value of data field
Throws:
Exception
See Also:
FieldListener.addField(java.lang.String)

endLineImpl

public BadLine endLineImpl(String pOriginalLine,
                           long pLineNumber)
                    throws Exception
Deprecated. 
Implement this method to be notified of the end of each data line.

Throws:
Exception
See Also:
FieldListener.endLine(java.lang.String, long)

badLineImpl

public abstract void badLineImpl(BadLine pBadLine)
                          throws Exception
Deprecated. 
Implement this method to be notified when badly formatted data is encountered.

Throws:
Exception
See Also:
FieldListener.badLine(com.ricebridge.csvman.BadLine)

endLineImpl

public BadLine endLineImpl()
Deprecated. 
DO NOT USE THIS METHOD. Included for compatibility up to release 1.1.1. This method will be removed in version 1.2.



Copyright © 2003-2006 Ricebridge