com.partnersoft.io.formats
Class StreamingDataRecordSource

java.lang.Object
  extended by com.partnersoft.data.DataRecordSource
      extended by com.partnersoft.io.formats.StreamingDataRecordSource
All Implemented Interfaces:
Coggable, java.lang.Iterable<Naming>
Direct Known Subclasses:
BinaryFixedWidthDataRecordSource, CSVDataRecordSource, DBFDataRecordSource, ExcelDataRecordSource, SQLDataRecordSource

public abstract class StreamingDataRecordSource
extends DataRecordSource

Abstract superclass for DataRecordSources that return results from some sort of file or URL stream.

Author:
Paul Reavis Copyright 2001 Partner Software, Inc.

Field Summary
 
Fields inherited from class com.partnersoft.data.DataRecordSource
showProgress, verbose
 
Constructor Summary
StreamingDataRecordSource()
           
 
Method Summary
protected  void copyStateFrom(java.lang.Object nother)
           
 java.io.InputStream createInputStream()
           
 java.lang.String getPath()
           
 java.util.ArrayList getPaths()
           
 Cog getState()
           
 void setInputStream(java.io.InputStream innie)
           
 void setPath(java.lang.String newPath)
           
 void setPaths(java.util.ArrayList newPaths)
           
 void setState(Cog newState)
           
 
Methods inherited from class com.partnersoft.data.DataRecordSource
clone, createFetcher, getAfterActions, getBeforeActions, getShowProgress, getTransforms, isVerbose, iterator, setAfterActions, setBeforeActions, setShowProgress, setTransforms, setVerbose
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingDataRecordSource

public StreamingDataRecordSource()
Method Detail

createInputStream

public java.io.InputStream createInputStream()
                                      throws java.io.IOException
Throws:
java.io.IOException

getState

public Cog getState()
Specified by:
getState in interface Coggable
Overrides:
getState in class DataRecordSource

setState

public void setState(Cog newState)
Specified by:
setState in interface Coggable
Overrides:
setState in class DataRecordSource

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String newPath)

getPaths

public java.util.ArrayList getPaths()

setPaths

public void setPaths(java.util.ArrayList newPaths)

setInputStream

public void setInputStream(java.io.InputStream innie)

copyStateFrom

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