Package | Description |
---|---|
co.nstant.in.cbor | |
co.nstant.in.cbor.builder | |
co.nstant.in.cbor.model |
Modifier and Type | Method and Description |
---|---|
DataItem |
CborDecoder.decodeNext()
Decodes exactly one DataItem from the input stream.
|
Modifier and Type | Method and Description |
---|---|
List<DataItem> |
CborBuilder.build() |
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.
|
Modifier and Type | Method and Description |
---|---|
CborBuilder |
CborBuilder.add(DataItem dataItem) |
protected void |
CborBuilder.addChunk(DataItem dataItem) |
void |
CborEncoder.encode(DataItem dataItem)
Encode a single
DataItem . |
void |
DataItemListener.onDataItem(DataItem dataItem)
Gets called on every decoded
DataItem . |
Modifier and Type | Method and Description |
---|---|
void |
CborEncoder.encode(List<DataItem> dataItems)
Encode a list of
DataItem s, also known as a stream. |
Modifier and Type | Method and Description |
---|---|
protected DataItem |
AbstractBuilder.convert(BigInteger value) |
protected DataItem |
AbstractBuilder.convert(boolean value) |
protected DataItem |
AbstractBuilder.convert(byte[] bytes) |
protected DataItem |
AbstractBuilder.convert(double value) |
protected DataItem |
AbstractBuilder.convert(float value) |
protected DataItem |
AbstractBuilder.convert(long value) |
protected DataItem |
AbstractBuilder.convert(String string) |
Modifier and Type | Method and Description |
---|---|
ArrayBuilder<T> |
ArrayBuilder.add(DataItem dataItem) |
protected void |
ArrayBuilder.addChunk(DataItem dataItem) |
protected void |
AbstractBuilder.addChunk(DataItem dataItem) |
MapBuilder<T> |
MapBuilder.put(DataItem key,
DataItem value) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFloat |
class |
Array |
class |
ByteString |
class |
DoublePrecisionFloat |
class |
HalfPrecisionFloat |
class |
Map |
class |
NegativeInteger |
class |
Number |
class |
SimpleValue |
class |
SinglePrecisionFloat |
class |
Special |
class |
Tag |
class |
UnicodeString |
class |
UnsignedInteger |
Modifier and Type | Method and Description |
---|---|
DataItem |
Map.get(DataItem key) |
DataItem |
Map.remove(DataItem key) |
Modifier and Type | Method and Description |
---|---|
List<DataItem> |
Array.getDataItems() |
Collection<DataItem> |
Map.getKeys() |
Collection<DataItem> |
Map.getValues() |
Modifier and Type | Method and Description |
---|---|
Array |
Array.add(DataItem object) |
DataItem |
Map.get(DataItem key) |
Map |
Map.put(DataItem key,
DataItem value) |
DataItem |
Map.remove(DataItem key) |
Copyright © 2014. All Rights Reserved.