Package com.bfo.box
Class CborBox
java.lang.Object
com.bfo.box.Box
com.bfo.box.DataBox
com.bfo.box.CborBox
A "cbor" box contains a single CBOR object. It is identical to
JsonBox
except the value is serialized as CBOR. It is defined in ISO19566-5 appendix B.5- Since:
- 5
-
Constructor Details
-
CborBox
public CborBox()Create a new uninitialized box, for loading. Don't call this constructor -
CborBox
Create a new CborBox- Parameters:
cbor
- the Json object, which must not be null
-
-
Method Details
-
setCbor
Replace the CBOR object on this struture.- Parameters:
cbor
- the JSon object, which must not be null
-
cbor
Return the CBOR object contained in this struture.- Returns:
- the object
-
toString
Description copied from class:Box
Return a String representation of this Box, which will be parseable as JSON
-