Package nz.org.riskscape.engine.io
Class DiskStorageReader
java.lang.Object
nz.org.riskscape.engine.io.DiskStorageReader
- All Implemented Interfaces:
Closeable,AutoCloseable,nz.org.riskscape.engine.io.TupleReader
Wraps a DataInputStreamTupleReader to apply byte counting and buffering to a FileOutputStream.
-
Constructor Details
-
DiskStorageReader
- Throws:
IOException
-
-
Method Details
-
read
public nz.org.riskscape.engine.Tuple read(nz.org.riskscape.engine.types.Struct expected) throws IOException - Specified by:
readin interfacenz.org.riskscape.engine.io.TupleReader- Throws:
IOException
-
getBytesRead
public long getBytesRead() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getFile
-