Class CborTokenReader

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

public class CborTokenReader extends Object implements TokenReader
Reference implementation of the public TokenReader surface for the CBOR format (RFC 8949).

Backed by the existing internal CborInputStream plumbing. CBOR's wire format is already token-shaped (major-type encoded data items), so this cursor maps almost directly onto CborInputStream.readDataType().

Notes:
  • This class is not thread safe.
  • The cursor is a true O(1)-memory streaming cursor (isStreaming() == true).
  • The cursor is purely structural; object swaps and @Schema annotations have no effect. Use the POJO databind path on CborParser for those.