Package org.webpki.cbor
Class CBORSimple
java.lang.Object
org.webpki.cbor.CBORObject
org.webpki.cbor.CBORSimple
- All Implemented Interfaces:
Cloneable
,Comparable<CBORObject>
Class for holding CBOR
#7.n
(simple) objects.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.webpki.cbor.CBORObject
checkForUnread, clone, compareTo, encode, equals, getArray, getBigInteger, getBoolean, getBytes, getDateTime, getEpochTime, getFloat16, getFloat32, getFloat64, getInt16, getInt32, getInt64, getInt8, getMap, getSimple, getString, getTag, getUint16, getUint32, getUint64, getUint8, hashCode, isNull, scan, toDiagnosticNotation, toString
-
Constructor Details
-
CBORSimple
public CBORSimple(int value) Creates a CBOR#7.n
(simple) object.Simple values are limited to:
0-23
and32-255
.- Parameters:
value
- int value- Throws:
CBORException
-