com.timeindexing.appl
Class Selecter

java.lang.Object
  extended by com.timeindexing.event.OutputEventGenerator
      extended by com.timeindexing.appl.Selecter
All Implemented Interfaces:
OutputEventListener, java.util.EventListener
Direct Known Subclasses:
SelecterWithHeader

public class Selecter
extends OutputEventGenerator
implements OutputEventListener

Display a selection of TimeIndex to an OutputStream given the Index filename.


Field Summary
 
Fields inherited from class com.timeindexing.event.OutputEventGenerator
outputListenerList
 
Constructor Summary
Selecter(java.lang.String filename)
          Construct a Selecter object, with output to System.out.
Selecter(java.lang.String filename, java.io.OutputStream out)
          Construct a Selecter object.
 
Method Summary
 void addOutputEventListener(OutputEventListener l)
          Add a OutputEventListener.
 void addPrimaryEventListener(IndexPrimaryEventListener l)
          Add a IndexPrimaryEventListener.
 void close()
          Close
 long getBytesOutput()
          Get the number of bytes output.
protected  void open()
          Open
protected  void output(IndexProperties selectionProperties)
          Do the output
 void outputNotification(OutputEvent oe)
          Receive OutputEvents from the SelectionStreamer and pass then to all the Listeners this has.
 void removePrimaryEventListener(IndexPrimaryEventListener l)
          Remove a IndexPrimaryEventListener.
 Selecter select(IndexProperties selectionProperties)
          Display the output.
 
Methods inherited from class com.timeindexing.event.OutputEventGenerator
fireOutputEvent, getOutputEventListeners, hasOutputEventListeners, removeOutputEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selecter

public Selecter(java.lang.String filename)
Construct a Selecter object, with output to System.out.


Selecter

public Selecter(java.lang.String filename,
                java.io.OutputStream out)
Construct a Selecter object.

Method Detail

select

public Selecter select(IndexProperties selectionProperties)
                throws java.io.IOException,
                       TimeIndexException
Display the output.

Throws:
java.io.IOException
TimeIndexException

open

protected void open()
             throws TimeIndexException
Open

Throws:
TimeIndexException

output

protected void output(IndexProperties selectionProperties)
               throws java.io.IOException,
                      TimeIndexException
Do the output

Throws:
java.io.IOException
TimeIndexException

close

public void close()
           throws TimeIndexException
Close

Throws:
TimeIndexException

getBytesOutput

public long getBytesOutput()
Get the number of bytes output.


addOutputEventListener

public void addOutputEventListener(OutputEventListener l)
Add a OutputEventListener.

Overrides:
addOutputEventListener in class OutputEventGenerator

outputNotification

public void outputNotification(OutputEvent oe)
Receive OutputEvents from the SelectionStreamer and pass then to all the Listeners this has.

Specified by:
outputNotification in interface OutputEventListener

addPrimaryEventListener

public void addPrimaryEventListener(IndexPrimaryEventListener l)
Add a IndexPrimaryEventListener.


removePrimaryEventListener

public void removePrimaryEventListener(IndexPrimaryEventListener l)
Remove a IndexPrimaryEventListener.



Timeindexing 2008