public abstract class BinaryEncoder extends Object implements Type.Codec.Encoder
| Constructor and Description |
|---|
BinaryEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
encode(Type type,
io.netty.buffer.ByteBuf buffer,
Object val,
Context context) |
void |
encode(Type type,
Object buffer,
Object value,
Context context) |
int |
length(Type type,
Object val,
Context context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputType, getOutputPrimitiveTypeprotected abstract void encode(Type type, io.netty.buffer.ByteBuf buffer, Object val, Context context) throws IOException
IOExceptionpublic void encode(Type type, Object buffer, Object value, Context context) throws IOException
encode in interface Type.Codec.EncoderIOExceptionpublic int length(Type type, Object val, Context context) throws IOException
length in interface Type.Codec.EncoderIOExceptionCopyright © 2013-2015 impossibl.com. All Rights Reserved.