Class MsgPackTokenReader

java.lang.Object
org.apache.juneau.marshall.msgpack.MsgPackTokenReader
All Implemented Interfaces:
Closeable, AutoCloseable, RecordReader, TokenReader

public class MsgPackTokenReader extends Object implements TokenReader
Reference implementation of the public TokenReader surface for the MessagePack format.

Backed by the existing internal MsgPackInputStream plumbing. MessagePack containers are length-prefixed; this cursor tracks the remaining-element-count per level on a stack and emits END_* when the count is exhausted.

Notes:
  • This class is not thread safe.
  • The cursor is a true O(1)-memory streaming cursor (isStreaming() == true).