Class DataReaderFactory.DataReaderWithStats<T>
- java.lang.Object
-
- htsjdk.samtools.cram.encoding.reader.DataReaderFactory.DataReaderWithStats<T>
-
- All Implemented Interfaces:
DataReader<T>
- Enclosing class:
- DataReaderFactory
public static class DataReaderFactory.DataReaderWithStats<T> extends Object implements DataReader<T>
-
-
Field Summary
Fields Modifier and Type Field Description longnanos
-
Constructor Summary
Constructors Constructor Description DataReaderWithStats(DataReader<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreadData()Read a single objectTreadDataArray(int length)Read an array of specified length.
-
-
-
Constructor Detail
-
DataReaderWithStats
public DataReaderWithStats(DataReader<T> delegate)
-
-
Method Detail
-
readData
public T readData() throws IOException
Description copied from interface:DataReaderRead a single object- Specified by:
readDatain interfaceDataReader<T>- Returns:
- an object or a primitive value read
- Throws:
IOException- as per java IO contract
-
readDataArray
public T readDataArray(int length) throws IOException
Description copied from interface:DataReaderRead an array of specified length. Normally this is a byte array. The intent here is optimization: reading an array may be faster than reading elements one by one.- Specified by:
readDataArrayin interfaceDataReader<T>- Parameters:
length- the length of the array to be read- Returns:
- the array of objects
- Throws:
IOException- as per java IO contract
-
-