|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.csvman.FieldListenerSupport
com.ricebridge.csvman.DebugFieldListener
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 |
public DebugFieldListener()
| Method Detail |
public void startLoadImpl()
FieldListenerSupport
startLoadImpl in class FieldListenerSupportpublic void endLoadImpl()
FieldListenerSupport
endLoadImpl in class FieldListenerSupportpublic void addFieldImpl(String pValue)
FieldListenerSupport
addFieldImpl in class FieldListenerSupportpValue - String value of data fieldFieldListener.addField(java.lang.String)
public BadLine endLineImpl(String pOriginalLine,
long pLineNumber)
FieldListenerSupport
endLineImpl in class FieldListenerSupportFieldListener.endLine(java.lang.String, long)public void badLineImpl(BadLine pBadLine)
FieldListenerSupport
badLineImpl in class FieldListenerSupportFieldListener.badLine(com.ricebridge.csvman.BadLine)public void setPrintStream(PrintStream pPrintStream)
PrintStream to which status messages are written.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||