opennlp.maxent
Class RealBasicEventStream

java.lang.Object
  extended by opennlp.model.AbstractEventStream
      extended by opennlp.maxent.RealBasicEventStream
All Implemented Interfaces:
EventStream

public class RealBasicEventStream
extends AbstractEventStream


Constructor Summary
RealBasicEventStream(DataStream ds)
           
 
Method Summary
 boolean hasNext()
          Test whether there are any Events remaining in this EventStream.
static void main(java.lang.String[] args)
           
 Event next()
          Returns the next Event object held in this EventStream.
 
Methods inherited from class opennlp.model.AbstractEventStream
remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealBasicEventStream

public RealBasicEventStream(DataStream ds)
Method Detail

next

public Event next()
Description copied from interface: EventStream
Returns the next Event object held in this 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.

Returns:
true if this EventStream has more Events

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException


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