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<java.lang.Object>>
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()
           
StreamingDataRecordSource(Cog newState)
           
 
Method Summary
protected  void copyStateFrom(java.lang.Object nother)
           
 java.io.InputStream createInputStream()
           
 java.lang.String getPath()
           
 java.util.List getPaths()
           
 void setInputStream(java.io.InputStream innie)
           
 void setPath(java.lang.String newPath)
           
 void setPaths(java.util.List newPaths)
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 
Methods inherited from class com.partnersoft.data.DataRecordSource
clone, close, 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()

StreamingDataRecordSource

public StreamingDataRecordSource(Cog newState)
Method Detail

createInputStream

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

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 DataRecordSource
Returns:
Cog representing the internal state of this object

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String newPath)

getPaths

public java.util.List getPaths()

setPaths

public void setPaths(java.util.List newPaths)

setInputStream

public void setInputStream(java.io.InputStream innie)

copyStateFrom

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