public class CompositFastStructWriter extends java.lang.Object implements FastStructWriter<java.lang.Object>
| Constructor and Description |
|---|
CompositFastStructWriter(java.util.Map<java.lang.Class<?>,FastStructWriter<?>> map)
Create instance of CompositFastStructWriter.
|
CompositFastStructWriter(java.util.Map<java.lang.Class<?>,FastStructWriter<?>> map,
int bufsiz)
Create instance of CompositFastStructWriter.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getByteBuffer()
Get byte buffer.
|
byte[] |
getBytes()
Get bytes.
|
void |
workOn(java.nio.ByteBuffer bb)
Work on byte buffer.
|
void |
write(java.lang.Object o)
Write.
|
public CompositFastStructWriter(java.util.Map<java.lang.Class<?>,FastStructWriter<?>> map)
map - map from Class'es to FastStructWriter'spublic CompositFastStructWriter(java.util.Map<java.lang.Class<?>,FastStructWriter<?>> map, int bufsiz)
map - map from Class'es to FastStructWriter'sbufsiz - size of byte array to write topublic void write(java.lang.Object o)
throws RecordException
FastStructWriterwrite in interface FastStructWriter<java.lang.Object>o - object to writeRecordException - if problem writingpublic void workOn(java.nio.ByteBuffer bb)
FastStructWriterworkOn in interface FastStructWriter<java.lang.Object>bb - byte bufferpublic byte[] getBytes()
FastStructWritergetBytes in interface FastStructWriter<java.lang.Object>public java.nio.ByteBuffer getByteBuffer()
FastStructWritergetByteBuffer in interface FastStructWriter<java.lang.Object>