public class HashSumEventStream extends Object implements EventStream
Constructor and Description |
---|
HashSumEventStream(EventStream eventStream) |
Modifier and Type | Method and Description |
---|---|
BigInteger |
calculateHashSum()
Calculates the hash sum of the stream.
|
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() |
public HashSumEventStream(EventStream eventStream)
public boolean hasNext() throws IOException
EventStream
hasNext
in interface EventStream
IOException
public Event next() throws IOException
EventStream
next
in interface EventStream
IOException
public BigInteger calculateHashSum()
IllegalStateException
- if the stream is not consumed completely,
completely means that hasNext() returns falsepublic void remove()
Copyright © 2016 The Apache Software Foundation. All rights reserved.