public static class DataReaderFactory.DataReaderWithStats<T> extends Object implements DataReader<T>
Modifier and Type | Field and Description |
---|---|
long |
nanos |
Constructor and Description |
---|
DataReaderWithStats(DataReader<T> delegate) |
Modifier and Type | Method and Description |
---|---|
T |
readData()
Read a single object
|
T |
readDataArray(int length)
Read an array of specified length.
|
public DataReaderWithStats(DataReader<T> delegate)
public T readData() throws IOException
DataReader
readData
in interface DataReader<T>
IOException
- as per java IO contractpublic T readDataArray(int length) throws IOException
DataReader
readDataArray
in interface DataReader<T>
length
- the length of the array to be readIOException
- as per java IO contract