Package | Description |
---|---|
co.nstant.in.cbor | |
co.nstant.in.cbor.decoder | |
co.nstant.in.cbor.encoder | |
co.nstant.in.cbor.model |
Modifier and Type | Method and Description |
---|---|
List<DataItem> |
CborDecoder.decode()
Decode the
InputStream to a list of DataItem s. |
static List<DataItem> |
CborDecoder.decode(byte[] bytes)
Convenience method to decode a byte array directly.
|
void |
CborDecoder.decode(DataItemListener dataItemListener)
Streaming decoding of an input stream.
|
DataItem |
CborDecoder.decodeNext()
Decodes exactly one DataItem from the input stream.
|
void |
CborEncoder.encode(DataItem dataItem)
Encode a single
DataItem . |
void |
CborEncoder.encode(List<DataItem> dataItems)
Encode a list of
DataItem s, also known as a stream. |
void |
CborEncoder.encode(RationalNumber rationalNumber) |
Modifier and Type | Method and Description |
---|---|
UnsignedInteger |
UnsignedIntegerDecoder.decode(int initialByte) |
UnicodeString |
UnicodeStringDecoder.decode(int initialByte) |
Tag |
TagDecoder.decode(int initialByte) |
Special |
SpecialDecoder.decode(int initialByte) |
SinglePrecisionFloat |
SinglePrecisionFloatDecoder.decode(int initialByte) |
NegativeInteger |
NegativeIntegerDecoder.decode(int initialByte) |
Map |
MapDecoder.decode(int initialByte) |
HalfPrecisionFloat |
HalfPrecisionFloatDecoder.decode(int initialByte) |
DoublePrecisionFloat |
DoublePrecisionFloatDecoder.decode(int initialByte) |
ByteString |
ByteStringDecoder.decode(int initialByte) |
Array |
ArrayDecoder.decode(int initialByte) |
abstract T |
AbstractDecoder.decode(int initialByte) |
protected long |
AbstractDecoder.getLength(int initialByte) |
protected BigInteger |
AbstractDecoder.getLengthAsBigInteger(int initialByte) |
protected int |
AbstractDecoder.nextSymbol() |
Modifier and Type | Method and Description |
---|---|
void |
ArrayEncoder.encode(Array array) |
void |
ByteStringEncoder.encode(ByteString byteString) |
void |
DoublePrecisionFloatEncoder.encode(DoublePrecisionFloat dataItem) |
void |
HalfPrecisionFloatEncoder.encode(HalfPrecisionFloat dataItem) |
void |
MapEncoder.encode(Map map) |
void |
NegativeIntegerEncoder.encode(NegativeInteger dataItem) |
void |
RationalNumberEncoder.encode(RationalNumber rationalNumber) |
void |
SinglePrecisionFloatEncoder.encode(SinglePrecisionFloat dataItem) |
void |
SpecialEncoder.encode(Special dataItem) |
abstract void |
AbstractEncoder.encode(T dataItem) |
void |
TagEncoder.encode(Tag tag) |
void |
UnicodeStringEncoder.encode(UnicodeString dataItem) |
void |
UnsignedIntegerEncoder.encode(UnsignedInteger dataItem) |
protected void |
AbstractEncoder.encodeTypeAndLength(MajorType majorType,
BigInteger length) |
protected void |
AbstractEncoder.encodeTypeAndLength(MajorType majorType,
long length) |
protected void |
AbstractEncoder.encodeTypeChunked(MajorType majorType) |
protected void |
AbstractEncoder.write(byte[] bytes) |
protected void |
AbstractEncoder.write(int b) |
Constructor and Description |
---|
RationalNumber(Number numerator,
Number denomiator) |
Copyright © 2014. All Rights Reserved.