Package org.apache.juneau.marshall.cbor
Class CborInputStream
java.lang.Object
java.io.InputStream
org.apache.juneau.marshall.parser.ParserInputStream
org.apache.juneau.marshall.cbor.CborInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Positionable
Specialized input stream for parsing CBOR streams (RFC 8949).
Reads CBOR-encoded binary data, extracting major types and additional information from initial bytes and decoding values according to RFC 8949.
Notes:
- This class is not intended for external use.
- Indefinite-length encoding (RFC 8949 ยง3.2) is supported: arrays/maps decode via the
BREAK-aware container loop, and chunked text/byte strings (heads
0x7F /0x5F ) are reassembled from their definite-length pieces.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.marshall.parser.ParserInputStream
checkLength, checkLength, getPosition, setMaxLengthMethods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
CborInputStream
Constructor.- Parameters:
pipe- The parser input.- Throws:
IOException- Thrown by underlying stream.
-
-
Method Details
-
read
- Overrides:
readin classParserInputStream- Throws:
IOException
-