| Modifier and Type | Class and Description |
|---|---|
class |
CborArray
Class for representing CBOR array data items.
|
class |
CborByteString
CBOR byte string object interface.
|
class |
CborFloat
CBOR floating-point number object interface.
|
class |
CborInteger
CBOR integer object interface.
|
class |
CborMap
Class for representing CBOR map data items.
|
class |
CborSimple
CBOR simple value object class.
|
class |
CborTextString
CBOR text string object interface.
|
| Modifier and Type | Method and Description |
|---|---|
abstract CborObject |
CborObject.copy()
Creates an independent, deep copy of this data item.
|
static CborObject |
CborObject.createFromCborByteArray(byte[] input)
Creates a new
CborObject from a CBOR-encoded byte array. |
static CborObject |
CborObject.createFromCborByteArray(byte[] input,
int offset,
int length)
Creates a new
CborObject from a CBOR-encoded byte array starting at a given offset. |
static CborObject |
CborObject.createFromJavaObject(@Nullable Object obj)
Creates a new
CborObject based on the given Java object. |
CborObject |
CborMap.get(CborObject key) |
CborObject |
CborMap.get(String key)
Convenience getter method to allow the use of standard
String objects when the keys
in the map are all CborTextString. |
CborObject |
CborMap.put(String key,
CborObject value)
Convenience setter method to allow the use of standard
String objects when the keys
in the map are all CborTextString. |
CborObject |
CborReader.readDataItem()
Reads the next available data item as a
CborObject. |
CborObject |
CborMap.remove(CborObject key) |
CborObject |
CborMap.remove(String key)
Convenience removal method to allow the use of standard
String objects when the keys
in the map are all CborTextString. |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<CborObject,CborObject>> |
CborMap.entrySet() |
Set<Map.Entry<CborObject,CborObject>> |
CborMap.entrySet() |
Set<CborObject> |
CborMap.keySet() |
abstract List<CborObject> |
CborArray.listValue()
|
abstract Map<CborObject,CborObject> |
CborMap.mapValue() |
abstract Map<CborObject,CborObject> |
CborMap.mapValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
CborArray.add(CborObject cborObject)
Appends the given object to this
CborArray. |
CborObject |
CborMap.get(CborObject key) |
static int |
CborWriter.length(CborObject obj)
Calculates the CBOR-encoded length of the given
CborObject. |
CborObject |
CborMap.put(String key,
CborObject value)
Convenience setter method to allow the use of standard
String objects when the keys
in the map are all CborTextString. |
boolean |
CborArray.remove(CborObject cborObject)
Removes the given object from this
CborArray. |
CborObject |
CborMap.remove(CborObject key) |
CborWriter |
CborWriter.writeDataItem(CborObject obj)
Serializes a
CborObject. |
| Modifier and Type | Method and Description |
|---|---|
static CborArray |
CborArray.create(Iterable<CborObject> objs)
Creates an untagged
CborArray populated with the given CborObjects. |
static CborArray |
CborArray.create(Iterable<CborObject> objs,
int tag)
Creates a tagged
CborArray populated with the given CborObjects. |
static CborArray |
CborArray.create(Iterable<CborObject> objs,
int tag,
boolean isIndefiniteLength)
Creates a tagged
CborArray populated with the given CborObjects. |
static CborMap |
CborMap.create(Map<CborObject,CborObject> map)
Creates a
CborMap object populated with the keys and values from map. |
static CborMap |
CborMap.create(Map<CborObject,CborObject> map)
Creates a
CborMap object populated with the keys and values from map. |
static CborMap |
CborMap.create(Map<CborObject,CborObject> map,
int tag)
Creates a tagged
CborMap object populated with the keys and values from map
. |
static CborMap |
CborMap.create(Map<CborObject,CborObject> map,
int tag)
Creates a tagged
CborMap object populated with the keys and values from map
. |
static CborMap |
CborMap.create(Map<CborObject,CborObject> map,
int tag,
boolean isIndefiniteLength)
Creates a tagged
CborMap object populated with the keys and values from map
. |
static CborMap |
CborMap.create(Map<CborObject,CborObject> map,
int tag,
boolean isIndefiniteLength)
Creates a tagged
CborMap object populated with the keys and values from map
. |
Copyright © 2018–2023. All rights reserved.