|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.RecordListenerSupport
com.ricebridge.xmlman.StringArrayRecordListener
Implementation of RecordListener that stores data records as a List of String[] arrays.
This class is used to implement the load(*,RecordSpec) methods in XmlManager.
It simply stores the String[] arrays in an ArrayList.
StringArrayRecordListener is designed to be subclassed. You can change the default implementation by calling the
setStringArrayRecordListenerClass method of
XmlManagerStore, and providing a subclass of StringArrayRecordListener.
XmlManagerStore can be accessed using XmlManager.getXmlManagerStore().
The Source Code of this Java class is available under a BSD-style license.
| Field Summary | |
protected ArrayList |
iRecords
List of String[] arrays containing record data. |
| Fields inherited from class com.ricebridge.xmlman.RecordListenerSupport |
iFieldNames |
| Constructor Summary | |
StringArrayRecordListener()
Constructor with no parameters required for creating new objects in XmlManagerStore.newStringArrayRecordListener. |
|
| Method Summary | |
List |
getRecords()
Get the stored list of data records. |
protected BadRecord |
handleRecordImpl(String[] pRecord,
long pRecordNumber)
Store the data record String[]. |
String |
toString()
Return a textual description suitable for debugging. |
| Methods inherited from class com.ricebridge.xmlman.RecordListenerSupport |
endProcess, endProcessImpl, handleRecord, setFieldNames, setFieldNamesImpl, setXmlSpec, setXmlSpecImpl, startProcess, startProcessImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ArrayList iRecords
List of String[] arrays containing record data.
| Constructor Detail |
public StringArrayRecordListener()
XmlManagerStore.newStringArrayRecordListener.
| Method Detail |
public List getRecords()
List of String[] arrayspublic String toString()
protected BadRecord handleRecordImpl(String[] pRecord,
long pRecordNumber)
String[].
handleRecordImpl in class RecordListenerSupportpRecord - record data as a String[]pRecordNumber - current count of recordsRecordListener.handleRecord(java.lang.String[], long)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||