com.timeindexing.appl
Class CountLimitedSelectionStreamer

java.lang.Object
  extended by com.timeindexing.event.OutputEventGenerator
      extended by com.timeindexing.appl.OutputStreamer
          extended by com.timeindexing.appl.SelectionStreamer
              extended by com.timeindexing.appl.CountLimitedSelectionStreamer

public class CountLimitedSelectionStreamer
extends SelectionStreamer

A class to output a selction of the data, but which limits the amount to a certain number of items.


Field Summary
 
Fields inherited from class com.timeindexing.appl.OutputStreamer
index, out, outputPlugin, outputProperties, writeCount
 
Fields inherited from class com.timeindexing.event.OutputEventGenerator
outputListenerList
 
Constructor Summary
CountLimitedSelectionStreamer(Index anIndex, java.io.OutputStream output)
          Construct a CountLimitedSelectionStreamer object given an index and an output stream.
 
Method Summary
 long processTimeIndex(IndexView selection)
          Process the TimeIndex
 
Methods inherited from class com.timeindexing.appl.SelectionStreamer
doOutput
 
Methods inherited from class com.timeindexing.appl.OutputStreamer
fetchIndexItem, getOutputPlugin, setOutputPlugin
 
Methods inherited from class com.timeindexing.event.OutputEventGenerator
addOutputEventListener, fireOutputEvent, getOutputEventListeners, hasOutputEventListeners, removeOutputEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountLimitedSelectionStreamer

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

Method Detail

processTimeIndex

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

Overrides:
processTimeIndex in class OutputStreamer
Throws:
java.io.IOException
TimeIndexException


Timeindexing 2008