com.partnersoft.io.formats.misc
Class ExcelDataRecordSource

java.lang.Object
  extended by com.partnersoft.data.DataRecordSource
      extended by com.partnersoft.io.formats.StreamingDataRecordSource
          extended by com.partnersoft.io.formats.misc.ExcelDataRecordSource
All Implemented Interfaces:
Coggable, java.io.Serializable, java.lang.Iterable<Naming<java.lang.Object>>

public class ExcelDataRecordSource
extends StreamingDataRecordSource
implements java.io.Serializable

A source for data records, pulled from a Microsoft Excel spreadsheet file.

Author:
Paul Reavis Copyright 2006 Partner Software, Inc.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.partnersoft.data.DataRecordSource
showProgress, verbose
 
Constructor Summary
ExcelDataRecordSource()
           
ExcelDataRecordSource(Cog newState)
           
ExcelDataRecordSource(java.io.File filet)
           
ExcelDataRecordSource(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 getFields()
           
 java.lang.String getWorkSheet()
           
static void main(java.lang.String[] argv)
           
 void setFields(java.util.List newFields)
           
 void setWorkSheet(java.lang.String newName)
           
 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

ExcelDataRecordSource

public ExcelDataRecordSource()

ExcelDataRecordSource

public ExcelDataRecordSource(java.lang.String path)

ExcelDataRecordSource

public ExcelDataRecordSource(java.io.File filet)

ExcelDataRecordSource

public ExcelDataRecordSource(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

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

copyStateFrom

protected void copyStateFrom(java.lang.Object nother)
Overrides:
copyStateFrom in class StreamingDataRecordSource

getFields

public java.util.List getFields()

setFields

public void setFields(java.util.List newFields)

getWorkSheet

public java.lang.String getWorkSheet()

setWorkSheet

public void setWorkSheet(java.lang.String newName)