Class MsgPackParser

All Implemented Interfaces:
MsgPackMetaProvider, ArrayRecordReadable, RecordReadable, TokenReadable
Direct Known Subclasses:
MsgPackParser.Base64, MsgPackParser.SpacedHex

Parses a MessagePack stream into a POJO model.
Media types
Handles Content-Type types: application/msgpack, octal/msgpack

The legacy media type octal/msgpack is retained as a backward-compatibility alias so that existing wire values still decode. New consumers should prefer the RFC-standard application/msgpack value.

Description

MessagePack-to-Java type mapping:

  • MessagePack map → bean or Map
  • MessagePack array → Collection or Java array
  • MessagePack string → String; coerced to types parseable from string
  • MessagePack boolean → Boolean
  • MessagePack int → Integer; coerced to Long, Short, Byte as needed
  • MessagePack float → Float or Double
  • MessagePack binary → byte[]
  • MessagePack nil → null
Notes:
  • This class is thread safe and reusable.
See Also: