opennlp.model
Class SequenceStreamEventStream
java.lang.Object
opennlp.model.SequenceStreamEventStream
- All Implemented Interfaces:
- EventStream
public class SequenceStreamEventStream
- extends Object
- implements EventStream
Class which turns a sequence stream into an event stream.
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()
|
SequenceStreamEventStream
public SequenceStreamEventStream(SequenceStream sequenceStream)
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.