com.timeindexing.appl
Class CountLimitedSelectionStreamer

java.lang.Object
  extended bycom.timeindexing.appl.OutputStreamer
      extended bycom.timeindexing.appl.SelectionStreamer
          extended bycom.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
 
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 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