public class BlinkCodec
extends java.lang.Object
implements com.cinnober.msgcodec.StreamCodec
BlinkCodecFactory| Constructor and Description |
|---|
BlinkCodec(com.cinnober.msgcodec.ProtocolDictionary dictionary,
com.cinnober.msgcodec.util.Pool<byte[]> bufferPool)
Create a Blink codec.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decode(java.io.InputStream in) |
void |
encode(java.lang.Object group,
java.io.OutputStream out) |
int |
getMaxBinarySize() |
public BlinkCodec(com.cinnober.msgcodec.ProtocolDictionary dictionary,
com.cinnober.msgcodec.util.Pool<byte[]> bufferPool)
throws com.cinnober.msgcodec.StreamCodecInstantiationException
dictionary - the definition of the messages to be understood by the codec.bufferPool - the buffer pool, needed for temporary storage while encoding.com.cinnober.msgcodec.StreamCodecInstantiationExceptionpublic int getMaxBinarySize()
public void encode(java.lang.Object group,
java.io.OutputStream out)
throws java.io.IOException
encode in interface com.cinnober.msgcodec.StreamCodecjava.io.IOExceptionpublic java.lang.Object decode(java.io.InputStream in)
throws java.io.IOException
decode in interface com.cinnober.msgcodec.StreamCodecjava.io.IOException