gate.util
Class CorpusControllerDocumentProcessor

java.lang.Object
  extended by gate.util.CorpusControllerDocumentProcessor
All Implemented Interfaces:
DocumentProcessor

public class CorpusControllerDocumentProcessor
extends Object
implements DocumentProcessor

DocumentProcessor that processes documents using a CorpusController.


Constructor Summary
CorpusControllerDocumentProcessor()
           
 
Method Summary
 void cleanup()
          Clean up resources.
 void processDocument(gate.Document doc)
          Process the given GATE document.
 void setController(gate.CorpusController c)
          Set the controller used to process documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorpusControllerDocumentProcessor

public CorpusControllerDocumentProcessor()
Method Detail

setController

public void setController(gate.CorpusController c)
Set the controller used to process documents.


processDocument

public void processDocument(gate.Document doc)
                     throws gate.util.GateException
Description copied from interface: DocumentProcessor
Process the given GATE document.

Specified by:
processDocument in interface DocumentProcessor
Throws:
gate.util.GateException

cleanup

public void cleanup()
Clean up resources. Should be called when this processor is no longer required.