public class HashSumEventStream extends AbstractObjectStream<Event>
Constructor and Description |
---|
HashSumEventStream(ObjectStream<Event> eventStream) |
Modifier and Type | Method and Description |
---|---|
BigInteger |
calculateHashSum()
Calculates the hash sum of the stream.
|
Event |
read()
Returns the next object.
|
void |
remove() |
close, reset
public HashSumEventStream(ObjectStream<Event> eventStream)
public Event read() throws IOException
ObjectStream
read
in interface ObjectStream<Event>
read
in class AbstractObjectStream<Event>
IOException
- if there is an error during readingpublic BigInteger calculateHashSum()
IllegalStateException
- if the stream is not consumed completely,
completely means that hasNext() returns falsepublic void remove()
Copyright © 2021 The Apache Software Foundation. All rights reserved.