|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.csvman.FieldListenerSupport
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 |
public FieldListenerSupport()
| Method Detail |
public void startLoad()
FieldListener.startLoad().
Subclasses should implement startLoadImpl().
startLoad in interface FieldListenerFieldListener.endLoad()public void endLoad()
FieldListener.endLoad().
Subclasses should implement endLoadImpl().
endLoad in interface FieldListenerFieldListener.startLoad()public void addField(String pValue)
FieldListener.addField(java.lang.String).
Subclasses should implement addFieldImpl(java.lang.String).
addField in interface FieldListenerpValue - field data as text
public BadLine endLine(String pOriginalLine,
long pLineNumber)
FieldListener.endLine(java.lang.String, long).
Subclasses should implement endLineImpl(java.lang.String, long).
endLine in interface FieldListenerpLineNumber - 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 badLine(BadLine pBadLine)
FieldListener.badLine(com.ricebridge.csvman.BadLine).
Subclasses should implement badLineImpl(com.ricebridge.csvman.BadLine).
badLine in interface FieldListenerpBadLine - BadLine object describing problemLineListener.handleBadLine(com.ricebridge.csvman.BadLine)
public void startLoadImpl()
throws Exception
Exception
public void endLoadImpl()
throws Exception
Exception
public abstract void addFieldImpl(String pValue)
throws Exception
pValue - String value of data field
ExceptionFieldListener.addField(java.lang.String)
public BadLine endLineImpl(String pOriginalLine,
long pLineNumber)
throws Exception
ExceptionFieldListener.endLine(java.lang.String, long)
public abstract void badLineImpl(BadLine pBadLine)
throws Exception
ExceptionFieldListener.badLine(com.ricebridge.csvman.BadLine)public BadLine endLineImpl()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||