public class ProtobufDynamicMessageDecoder extends IoBufferDecoder<ProtobufDynamicMessageDecoder.ProtobufSerializedMessage>
IoBuffer into
ProtobufDynamicMessageDecoder.ProtobufSerializedMessage.| Modifier and Type | Class and Description |
|---|---|
static class |
ProtobufDynamicMessageDecoder.ProtobufSerializedMessage |
| Constructor and Description |
|---|
ProtobufDynamicMessageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
ProtobufDynamicMessageDecoder.ProtobufSerializedMessage |
decode(IoBuffer input)
Decodes a message from a
IoBuffer
When a truncated input is given to this method it may return null. |
static ProtobufDynamicMessageDecoder |
newInstance() |
createDecoderState, decode, finishDecodepublic static ProtobufDynamicMessageDecoder newInstance()
public ProtobufDynamicMessageDecoder.ProtobufSerializedMessage decode(IoBuffer input)
IoBufferDecoderIoBuffer
When a truncated input is given to this method it may return null. Not all decoder will be able to detect this issue and report it that way. Thanks to prefixing of messages, decoder will only receive appropriately sized ByteBuffers.
n.b. The decoders used for the prefixing (i.e. RawInt32 and
VarInt) have to detect truncated ByteBuffers.
decode in class IoBufferDecoder<ProtobufDynamicMessageDecoder.ProtobufSerializedMessage>input - data to be decoded as a TYPE messageCopyright © 2009–2013 Apache MINA Project. All rights reserved.