opennlp.maxent
Class EventCollectorAsStream

java.lang.Object
  extended by opennlp.maxent.EventCollectorAsStream
All Implemented Interfaces:
EventStream

public final class EventCollectorAsStream
extends java.lang.Object
implements EventStream

A wrapper to turn EventCollectors created for Maxent 1.0 into EventStreams for Maxent 1.2. For efficiency, it would be best to convert your EventCollector into a EventStream directly, but this will allow your application to work with Maxent 1.2 with very little recoding.

Version:
$Revision: 1.1.1.1 $, $Date: 2001/10/23 14:06:53 $
Author:
Jason Baldridge

Constructor Summary
EventCollectorAsStream(EventCollector ec)
           
 
Method Summary
 boolean hasNext()
          Test whether there are any Events remaining in this EventStream.
 Event nextEvent()
          Returns the next Event object held in this EventStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventCollectorAsStream

public EventCollectorAsStream(EventCollector ec)
Method Detail

nextEvent

public Event nextEvent()
Description copied from interface: EventStream
Returns the next Event object held in this EventStream.

Specified by:
nextEvent in interface EventStream
Returns:
the Event object which is next in this EventStream

hasNext

public boolean hasNext()
Description copied from interface: EventStream
Test whether there are any Events remaining in this EventStream.

Specified by:
hasNext in interface EventStream
Returns:
true if this EventStream has more Events


Copyright © 2005 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.