Class MsgPackSpacedHex


public class MsgPackSpacedHex extends MsgPack
A MsgPack variant that represents binary values as spaced hexadecimal text instead of raw MessagePack bytes.

This is the first-class facade form of the spaced-hex MessagePack variant. It pairs MsgPackSerializer.DEFAULT_SPACED_HEX with MsgPackParser.DEFAULT_SPACED_HEX and exposes the full static shortcut surface bound to its own DEFAULT instance.

Examples:

// Using static shortcuts. byte[] bytes = MsgPackSpacedHex.of(myPojo); MyPojo myPojo = MsgPackSpacedHex.to(bytes, MyPojo.class);

Notes:
  • Because Java hides (does not override) static members, this class redeclares the entire static shortcut surface of MsgPack so that every shortcut is bound to this class's spaced-hex DEFAULT rather than the MsgPack.DEFAULT.
See Also: