Package nz.org.riskscape.engine.io
Interface TupleReader
- All Superinterfaces:
AutoCloseable,Closeable
Simple interface for something that reads Tuples from an underlying stream of data
-
Method Summary
-
Method Details
-
read
Read a
Tupleof the given type from the underlying stream.- Parameters:
expected- the type to read. Must be the type that was written, or bad things will happen- Returns:
- the tuple that was read, null if there's nothing left.
- Throws:
IOException
-
forEach
Pass all the tuples to the given consumer until the stream is exhausted.
- Throws:
IOException
-