edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors
Class ExampleExtractor<T>

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.exampleExtractors.ExampleExtractor<T>
Type Parameters:
T - The type of the examples being extracted.
All Implemented Interfaces:
LBJ2.parse.Parser
Direct Known Subclasses:
BatchExExtractor

public abstract class ExampleExtractor<T>
extends java.lang.Object
implements LBJ2.parse.Parser

Generic example extractor.

Author:
Eric Bengtson

Constructor Summary
ExampleExtractor()
           
 
Method Summary
 void close()
           
 void enqueue(java.lang.Object q)
          Does nothing.
abstract  T next()
          Gets the next example.
 void reset()
          After calling this method, next() should begin returning examples from the first example.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleExtractor

public ExampleExtractor()
Method Detail

next

public abstract T next()
Gets the next example.

Specified by:
next in interface LBJ2.parse.Parser
Returns:
The next example or null when done.

enqueue

public void enqueue(java.lang.Object q)
Does nothing.

Parameters:
q - Ignored.

reset

public void reset()
After calling this method, next() should begin returning examples from the first example.

Specified by:
reset in interface LBJ2.parse.Parser

close

public void close()
Specified by:
close in interface LBJ2.parse.Parser