Package co.nstant.in.cbor.decoder
Class AbstractDecoder<T>
java.lang.Object
co.nstant.in.cbor.decoder.AbstractDecoder<T>
- Direct Known Subclasses:
ArrayDecoder,ByteStringDecoder,DoublePrecisionFloatDecoder,HalfPrecisionFloatDecoder,MapDecoder,NegativeIntegerDecoder,SinglePrecisionFloatDecoder,SpecialDecoder,TagDecoder,UnicodeStringDecoder,UnsignedIntegerDecoder
public abstract class AbstractDecoder<T> extends Object
-
Field Summary
Fields Modifier and Type Field Description protected CborDecoderdecoderprotected static intINFINITYprotected InputStreaminputStream -
Constructor Summary
Constructors Constructor Description AbstractDecoder(CborDecoder decoder, InputStream inputStream) -
Method Summary
Modifier and Type Method Description abstract Tdecode(int initialByte)protected longgetLength(int initialByte)protected BigIntegergetLengthAsBigInteger(int initialByte)protected intnextSymbol()protected byte[]nextSymbols(int amount)voidsetMaxPreallocationSize(int maxPreallocationSize)
-
Field Details
-
INFINITY
protected static final int INFINITY- See Also:
- Constant Field Values
-
inputStream
-
decoder
-
-
Constructor Details
-
Method Details
-
decode
- Throws:
CborException
-
nextSymbol
- Throws:
CborException
-
nextSymbols
- Throws:
CborException
-
getLength
- Throws:
CborException
-
getLengthAsBigInteger
- Throws:
CborException
-
setMaxPreallocationSize
public void setMaxPreallocationSize(int maxPreallocationSize)
-