12131415161718
super(decoder, inputStream); } @Override public UnsignedInteger decode(int initialByte) throws CborException { return new UnsignedInteger(getLengthAsBigInteger(initialByte)); }
33343536373839404142
protected void addChunk(DataItem dataItem) { } protected DataItem convert(long value) { if (value >= 0) { return new UnsignedInteger(value); } else { return new NegativeInteger(value); } }
4344454647484950
protected DataItem convert(BigInteger value) { if (value.signum() == -1) { return new NegativeInteger(value); } else { return new UnsignedInteger(value); } }