public class CompositFastStructReader<T> extends java.lang.Object implements FastStructReader<T>
| Constructor and Description |
|---|
CompositFastStructReader(java.lang.Class<T> t,
java.util.Map<java.lang.Class<? extends T>,FastStructReader<? extends T>> map)
Create instance of CompositFastStructReader.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getByteBuffer()
Get byte buffer.
|
void |
init(byte[] ba)
Initialize byte buffer.
|
void |
init(java.nio.ByteBuffer bb)
Initialize byte buffer.
|
boolean |
more()
More records available.
|
T |
read(java.lang.Class<T> t)
Read.
|
public CompositFastStructReader(java.lang.Class<T> t, java.util.Map<java.lang.Class<? extends T>,FastStructReader<? extends T>> map) throws RecordException
t - super classmap - map from sub class'es to FastStructReader'sRecordException - if problem with super classpublic void init(byte[] ba)
FastStructReaderinit in interface FastStructReader<T>ba - byte array to read frompublic void init(java.nio.ByteBuffer bb)
FastStructReaderinit in interface FastStructReader<T>bb - byte buffer to read frompublic T read(java.lang.Class<T> t) throws RecordException
FastStructReaderread in interface FastStructReader<T>t - class of what to readRecordException - if problem readingpublic boolean more()
FastStructReadermore in interface FastStructReader<T>public java.nio.ByteBuffer getByteBuffer()
FastStructReadergetByteBuffer in interface FastStructReader<T>