com.sun.labs.minion.pipeline
Class PrintTokenStage

java.lang.Object
  extended by com.sun.labs.minion.pipeline.StageAdapter
      extended by com.sun.labs.minion.pipeline.PrintTokenStage
All Implemented Interfaces:
Stage, PipelineStage, com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable

public class PrintTokenStage
extends StageAdapter


Field Summary
 
Fields inherited from class com.sun.labs.minion.pipeline.StageAdapter
downstream, name
 
Constructor Summary
PrintTokenStage()
           
PrintTokenStage(java.lang.String out)
           
 
Method Summary
 void close()
           
 void startDocument(java.lang.String key)
          Process the event that occurs at the start of a document.
 void token(Token t)
          Processes a token from further up the pipeline.
 
Methods inherited from class com.sun.labs.minion.pipeline.StageAdapter
defineField, dump, endDocument, endField, getDownstream, getName, newProperties, punctuation, savedData, setDownstream, setName, shutdown, startField, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintTokenStage

public PrintTokenStage()

PrintTokenStage

public PrintTokenStage(java.lang.String out)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

startDocument

public void startDocument(java.lang.String key)
Description copied from class: StageAdapter
Process the event that occurs at the start of a document.

Specified by:
startDocument in interface Stage
Overrides:
startDocument in class StageAdapter
Parameters:
key - The document key for this document.

token

public void token(Token t)
Processes a token from further up the pipeline.

Specified by:
token in interface Stage
Overrides:
token in class StageAdapter
Parameters:
t - The token to process.

close

public void close()