public class NativeBlinkCodec
extends java.lang.Object
implements com.cinnober.msgcodec.MsgCodec
Note: Experimental support! E.g. variable length data is not supported for now. Null values are supported in encode and decode.
See the Blink Native Binary Format Specification beta4 - 2013-06-05.
This implementation differs from the specification above in the following ways:
fixed (binary) type is not supported.
BlinkCodecFactory| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decode(com.cinnober.msgcodec.io.ByteSource in) |
java.lang.Object |
decode(java.io.InputStream in) |
void |
encode(java.lang.Object group,
com.cinnober.msgcodec.io.ByteSink out) |
void |
encode(java.lang.Object group,
java.io.OutputStream out) |
public void encode(java.lang.Object group,
java.io.OutputStream out)
throws java.io.IOException
encode in interface com.cinnober.msgcodec.MsgCodecjava.io.IOExceptionpublic void encode(java.lang.Object group,
com.cinnober.msgcodec.io.ByteSink out)
throws java.io.IOException
encode in interface com.cinnober.msgcodec.MsgCodecjava.io.IOExceptionpublic java.lang.Object decode(java.io.InputStream in)
throws java.io.IOException
decode in interface com.cinnober.msgcodec.MsgCodecjava.io.IOExceptionpublic java.lang.Object decode(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
decode in interface com.cinnober.msgcodec.MsgCodecjava.io.IOException