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
EventStreamhasNext in interface EventStreamIOExceptionpublic Event next() throws IOException
EventStreamnext in interface EventStreamIOExceptionpublic BigInteger calculateHashSum()
IllegalStateException - if the stream is not consumed completely,
completely means that hasNext() returns falsepublic void remove()
Copyright © 2019 The Apache Software Foundation. All rights reserved.