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 CborDecoder
decoder
protected static int
INFINITY
protected InputStream
inputStream
-
Constructor Summary
Constructors Constructor Description AbstractDecoder(CborDecoder decoder, InputStream inputStream)
-
Method Summary
Modifier and Type Method Description abstract T
decode(int initialByte)
protected long
getLength(int initialByte)
protected BigInteger
getLengthAsBigInteger(int initialByte)
protected int
nextSymbol()
protected byte[]
nextSymbols(int amount)
void
setMaxPreallocationSize(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)
-