public abstract class GeneratedCompactCodec extends GeneratedCodec
Note: internal use only!
A GeneratedCompactCodec sub class represents a schema.
A GeneratedCompactCodec instance is tied to a specific BlinkCodec instance which holds the encode buffers
and any max binary size settings.
| Modifier and Type | Field and Description |
|---|---|
protected BlinkCodec |
codec
Reference to the blink codec.
|
maxBinarySize| Constructor and Description |
|---|
GeneratedCompactCodec(BlinkCodec codec)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
readDynamicGroup(com.cinnober.msgcodec.io.ByteSource in)
Read a dynamic group.
|
java.lang.Object |
readDynamicGroupNull(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable dynamic group.
|
void |
writeDynamicGroup(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Object group)
Write a dynamic group to the specified output stream.
|
void |
writeDynamicGroupNull(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Object group)
Write a nullable dynamic group to the specified output stream.
|
getMaxBinarySize, missingRequiredValue, readStaticGroup, unknownEnumSymbol, unknownGroupId, unknownGroupType, unmappableEnumSymbolId, unmappableEnumSymbolValue, writeStaticGroupWithIdprotected final BlinkCodec codec
public GeneratedCompactCodec(BlinkCodec codec)
(BlinkCodec, Schema).codec - the blink codec, not null.public void writeDynamicGroup(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Object group)
throws java.io.IOException,
java.lang.IllegalArgumentException
GeneratedCodecwriteDynamicGroup in class GeneratedCodecout - where to write to, not null.group - the group to encode, not nulljava.io.IOException - if the underlying stream throws an exception.java.lang.IllegalArgumentExceptionpublic void writeDynamicGroupNull(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Object group)
throws java.io.IOException
GeneratedCodecwriteDynamicGroupNull in class GeneratedCodecout - where to write to, or null.group - the group to encode, not nulljava.io.IOException - if the underlying stream throws an exception.public java.lang.Object readDynamicGroup(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
GeneratedCodecreadDynamicGroup in class GeneratedCodecin - the stream to read from.java.io.IOException - if the underlying stream throws an exception.public java.lang.Object readDynamicGroupNull(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
GeneratedCodecreadDynamicGroupNull in class GeneratedCodecin - the stream to read from.java.io.IOException - if the underlying stream throws an exception.