public class DecapCodec extends AbstractActionCodec
Modifier and Type | Field and Description |
---|---|
static NiciraActionDeserializerKey |
DESERIALIZER_KEY |
static int |
LENGTH |
static NiciraActionSerializerKey |
SERIALIZER_KEY |
Constructor and Description |
---|
DecapCodec() |
Modifier and Type | Method and Description |
---|---|
Action |
deserialize(io.netty.buffer.ByteBuf message)
Transforms byte message into POJO/DTO (of type E).
|
void |
serialize(Action input,
io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).
|
deserializeHeader, getExperimenterId, readNxmHeader, serializeHeader, skipPadding, writeNxmHeader, writePaddingAndSetLength
public static final int LENGTH
public static final NiciraActionSerializerKey SERIALIZER_KEY
public static final NiciraActionDeserializerKey DESERIALIZER_KEY
public Action deserialize(io.netty.buffer.ByteBuf message)
OFDeserializer
message
- message as bytes in ByteBufpublic void serialize(Action input, io.netty.buffer.ByteBuf outBuffer)
OFSerializer
input
- object to be serializedoutBuffer
- output bufferCopyright © 2020 OpenDaylight. All rights reserved.