opennlp.model
Class SequenceStreamEventStream

java.lang.Object
  extended by opennlp.model.SequenceStreamEventStream
All Implemented Interfaces:
EventStream

public class SequenceStreamEventStream
extends Object
implements EventStream

Class which turns a sequence stream into an event stream.


Constructor Summary
SequenceStreamEventStream(SequenceStream sequenceStream)
           
 
Method Summary
 boolean hasNext()
          Test whether there are any Events remaining in this EventStream.
 Event next()
          Returns the next Event object held in this EventStream.
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceStreamEventStream

public SequenceStreamEventStream(SequenceStream sequenceStream)
Method Detail

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

next

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

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

remove

public void remove()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.