com.partnersoft.io.formats.csv
Class CSVDataRecordSource
java.lang.Object
com.partnersoft.data.DataRecordSource
com.partnersoft.io.formats.StreamingDataRecordSource
com.partnersoft.io.formats.csv.CSVDataRecordSource
- All Implemented Interfaces:
- Coggable, java.io.Serializable, java.lang.Iterable<Naming<java.lang.Object>>
public class CSVDataRecordSource
- extends StreamingDataRecordSource
- implements java.io.Serializable
A source for data records, derived from a csv stream.
- Author:
- Paul Reavis Copyright 2001 Partner Software, Inc.
- See Also:
- Serialized Form
| Methods inherited from class com.partnersoft.data.DataRecordSource |
clone, close, getAfterActions, getBeforeActions, getShowProgress, getTransforms, isVerbose, iterator, setAfterActions, setBeforeActions, setShowProgress, setTransforms, setVerbose |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CSVDataRecordSource
public CSVDataRecordSource()
CSVDataRecordSource
public CSVDataRecordSource(java.lang.String path)
CSVDataRecordSource
public CSVDataRecordSource(java.io.File filet)
CSVDataRecordSource
public CSVDataRecordSource(Cog newState)
main
public static void main(java.lang.String[] argv)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
createFetcher
public DataRecordFetcher createFetcher()
- Description copied from class:
DataRecordSource
- Creates a new fetcher to gather data for a new iteration.
- Specified by:
createFetcher in class DataRecordSource
copyStateFrom
protected void copyStateFrom(java.lang.Object nother)
- Overrides:
copyStateFrom in class StreamingDataRecordSource
getCSVFields
public java.util.List getCSVFields()
setCSVFields
public void setCSVFields(java.util.List newFields)
getCSVType
public java.lang.String getCSVType()
setCSVType
public void setCSVType(java.lang.String newType)
toCog
public Cog toCog()
- Description copied from interface:
Coggable
- Returns the complete internal state of this object in the form of a
Cog.
- Specified by:
toCog in interface Coggable- Overrides:
toCog in class StreamingDataRecordSource
- Returns:
- Cog representing the internal state of this object