Package org.apache.juneau.marshall.cbor
Class CborOutputStream
java.lang.Object
java.io.OutputStream
org.apache.juneau.marshall.cbor.CborOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
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:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
Constructor Details
-
CborOutputStream
Constructor.- Parameters:
os- The output stream being wrapped.
-
-
Method Details
-
write
- Specified by:
writein classOutputStream
-
write
- Overrides:
writein classOutputStream
-