public class InstructionCodec extends OfJsonCodec<Instruction>
Instruction
objects.VERSION
log, mapper, NO_DECODING_SUP, root, roots
Modifier | Constructor and Description |
---|---|
protected |
InstructionCodec()
Constructs an Instruction Codec.
|
Modifier and Type | Method and Description |
---|---|
Instruction |
decode(com.fasterxml.jackson.databind.node.ObjectNode node)
Decodes the JSON into a typed POJO.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(Instruction ins)
Encodes the given POJO to its JSON representation.
|
decode, decodeList, encode, encodeList, version
arrayNode, encodeIterator, encodeIterator, encodeList, fromEnums, isMissingContent, longVal, objectNode, read, root, roots, toEnums, write
public com.fasterxml.jackson.databind.node.ObjectNode encode(Instruction ins)
JsonCodec
ins
- POJO to encodepublic Instruction decode(com.fasterxml.jackson.databind.node.ObjectNode node)
JsonCodec
node
- JSON representation of the typed POJO. This does not have a
"top" rootCopyright © 2015. All Rights Reserved.