com.partnersoft.io.formats.csv
Class CSVDataRecordSource

java.lang.Object
  extended by com.partnersoft.data.DataRecordSource
      extended by com.partnersoft.io.formats.StreamingDataRecordSource
          extended by 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

Field Summary
 
Fields inherited from class com.partnersoft.data.DataRecordSource
showProgress, verbose
 
Constructor Summary
CSVDataRecordSource()
           
CSVDataRecordSource(Cog newState)
           
CSVDataRecordSource(java.io.File filet)
           
CSVDataRecordSource(java.lang.String path)
           
 
Method Summary
protected  void copyStateFrom(java.lang.Object nother)
           
 DataRecordFetcher createFetcher()
          Creates a new fetcher to gather data for a new iteration.
 java.util.List getCSVFields()
           
 java.lang.String getCSVType()
           
static void main(java.lang.String[] argv)
           
 void setCSVFields(java.util.List newFields)
           
 void setCSVType(java.lang.String newType)
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 java.lang.String toString()
           
 
Methods inherited from class com.partnersoft.io.formats.StreamingDataRecordSource
createInputStream, getPath, getPaths, setInputStream, setPath, setPaths
 
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
 

Constructor Detail

CSVDataRecordSource

public CSVDataRecordSource()

CSVDataRecordSource

public CSVDataRecordSource(java.lang.String path)

CSVDataRecordSource

public CSVDataRecordSource(java.io.File filet)

CSVDataRecordSource

public CSVDataRecordSource(Cog newState)
Method Detail

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