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:
read
in interfacenz.org.riskscape.engine.io.TupleReader
- Throws:
IOException
-
getBytesRead
public long getBytesRead() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getFile
-