edu.iu.cnets.klatsch.stream
Class SEventIterator

java.lang.Object
  extended by edu.iu.cnets.klatsch.stream.Stream
      extended by edu.iu.cnets.klatsch.stream.SIterator
          extended by edu.iu.cnets.klatsch.stream.SEventIterator

public class SEventIterator
extends SIterator

This class wraps a stream around an iterator over Event objects. This provides functionality to the VFeed class that SIterator cannot, since we need to translate Event objects into VEvent objects.


Field Summary
 
Fields inherited from class edu.iu.cnets.klatsch.stream.SIterator
iter
 
Fields inherited from class edu.iu.cnets.klatsch.stream.Stream
buffer
 
Constructor Summary
SEventIterator(java.util.Iterator<Event> iter)
          Builds a new stream from the given iterator.
 
Method Summary
 Value getNext()
          Gets the next value in the list, if possible.
 
Methods inherited from class edu.iu.cnets.klatsch.stream.SIterator
done, toString
 
Methods inherited from class edu.iu.cnets.klatsch.stream.Stream
current, get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SEventIterator

public SEventIterator(java.util.Iterator<Event> iter)
Builds a new stream from the given iterator.

Method Detail

getNext

public Value getNext()
              throws EvaluationException
Gets the next value in the list, if possible.

Overrides:
getNext in class SIterator
Returns:
the value
Throws:
EvaluationException