com.timeindexing.appl
Class OutputStreamer

java.lang.Object
  extended bycom.timeindexing.appl.OutputStreamer
Direct Known Subclasses:
SelectionStreamer

public class OutputStreamer
extends java.lang.Object

A class to output any data


Field Summary
protected  Index index
           
protected  java.io.OutputStream out
           
protected  OutputPlugin outputPlugin
           
protected  IndexProperties outputProperties
           
protected  long writeCount
           
 
Constructor Summary
OutputStreamer(Index anIndex, java.io.OutputStream output)
          Construct an OutputStreamer object given an index and an output stream.
 
Method Summary
 long doOutput(IndexProperties properties)
          Do some output, given some IndexProperties.
 long processTimeIndex(IndexView selection)
          Process the TimeIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected Index index

out

protected java.io.OutputStream out

writeCount

protected long writeCount

outputPlugin

protected OutputPlugin outputPlugin

outputProperties

protected IndexProperties outputProperties
Constructor Detail

OutputStreamer

public OutputStreamer(Index anIndex,
                      java.io.OutputStream output)
Construct an OutputStreamer object given an index and an output stream.

Method Detail

doOutput

public long doOutput(IndexProperties properties)
              throws java.io.IOException,
                     TimeIndexException
Do some output, given some IndexProperties. This outputs the data for the whole index.

Throws:
java.io.IOException
TimeIndexException

processTimeIndex

public long processTimeIndex(IndexView selection)
                      throws java.io.IOException,
                             TimeIndexException
Process the TimeIndex

Throws:
java.io.IOException
TimeIndexException