Class CborOutputStream

java.lang.Object
java.io.OutputStream
org.apache.juneau.marshall.cbor.CborOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class CborOutputStream extends OutputStream
Specialized output stream for serializing CBOR streams (RFC 8949).

CBOR uses a self-describing binary format where each data item starts with an initial byte containing a 3-bit major type and 5-bit additional information. Integers use compact encoding; strings, arrays, and maps use definite-length encoding.

Notes:
  • This class is not intended for external use.
  • This class is not thread-safe; each serialization session uses its own instance.
See Also: