Package io.protostuff

Class KvpByteArrayInput

java.lang.Object
io.protostuff.KvpByteArrayInput
All Implemented Interfaces:
Input

public final class KvpByteArrayInput extends Object implements Input
An input for deserializing kvp-encoded messages. A kvp encoding is a binary encoding w/c contains a key-value sequence. On the wire, a serialized field (key-value) would look like: [key-len][key][value-len][value]

The keys and values are length-delimited (uint16 little endian).

Note that this encoding does not support nested messages. This encoding is mostly useful for headers w/c contain information about the content it carries (see http://projects.unbit.it/uwsgi/wiki/uwsgiProtocol).