public static class DataReaderFactory.DataReaderWithStats<T> extends java.lang.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 java.io.IOException
DataReaderreadData in interface DataReader<T>java.io.IOException - as per java IO contractpublic T readDataArray(int length) throws java.io.IOException
DataReaderreadDataArray in interface DataReader<T>length - the length of the array to be readjava.io.IOException - as per java IO contract