public interface

CborConstants

com.pnfsoftware.jeb.util.encoding.cbor.CborConstants

Class Overview

Constant values used by the CBOR format.

Summary

Constants
int BREAK The CBOR-encoded "break" stop code for unlimited arrays/maps.
int DOUBLE_PRECISION_FLOAT Denotes a double-precision float (eight-byte IEEE 754, see #MT_FLOAT).
int EIGHT_BYTES Denotes a eight-byte value (uint64).
int FALSE The CBOR-encoded boolean false value (encoded as "simple value": #MT_SIMPLE).
int FOUR_BYTES Denotes a four-byte value (uint32).
int HALF_PRECISION_FLOAT Denotes a half-precision float (two-byte IEEE 754, see #MT_FLOAT).
int NULL The CBOR-encoded null value (encoded as "simple value": #MT_SIMPLE).
int ONE_BYTE Denotes a one-byte value (uint8).
int SINGLE_PRECISION_FLOAT Denotes a single-precision float (four-byte IEEE 754, see #MT_FLOAT).
int TAG_BASE64_ENCODED Semantic tag value describing a base64 encoded string (UTF8 string).
int TAG_BASE64_URL_ENCODED Semantic tag value describing a base64url encoded string (UTF8 string).
int TAG_BIGDECIMAL Semantic tag value describing a big decimal value (two-element array, base 2).
int TAG_CBOR_ENCODED Semantic tag value describing an encoded CBOR data item (byte string).
int TAG_CBOR_MARKER Semantic tag value describing CBOR content.
int TAG_DECIMAL_FRACTION Semantic tag value describing a decimal fraction value (two-element array, base 10).
int TAG_EPOCH_DATE_TIME Semantic tag value describing date/time values as Epoch timestamp (numeric, RFC3339).
int TAG_EXPECTED_BASE16_ENCODED Semantic tag value describing an expected conversion to base16 encoding.
int TAG_EXPECTED_BASE64_ENCODED Semantic tag value describing an expected conversion to base64 encoding.
int TAG_EXPECTED_BASE64_URL_ENCODED Semantic tag value describing an expected conversion to base64url encoding.
int TAG_MIME_MESSAGE Semantic tag value describing a MIME message (UTF8 string, RFC2045).
int TAG_NEGATIVE_BIGINT Semantic tag value describing a negative big integer value (byte string).
int TAG_POSITIVE_BIGINT Semantic tag value describing a positive big integer value (byte string).
int TAG_REGEXP Semantic tag value describing a regular expression string (UTF8 string, PCRE).
int TAG_STANDARD_DATE_TIME Semantic tag value describing date/time values in the standard format (UTF8 string, RFC3339).
int TAG_URI Semantic tag value describing an URL (UTF8 string).
int TRUE The CBOR-encoded boolean true value (encoded as "simple value": #MT_SIMPLE).
int TWO_BYTES Denotes a two-byte value (uint16).
int TYPE_ARRAY Major type 4: array of items.
int TYPE_BYTE_STRING Major type 2: byte string.
int TYPE_FLOAT_SIMPLE Major type 7: floating point, simple data types.
int TYPE_MAP Major type 5: map of pairs.
int TYPE_NEGATIVE_INTEGER Major type 1: negative integers.
int TYPE_TAG Major type 6: semantic tags.
int TYPE_TEXT_STRING Major type 3: text/UTF8 string.
int TYPE_UNSIGNED_INTEGER Major type 0: unsigned integers.
int UNDEFINED The CBOR-encoded "undefined" value (encoded as "simple value": #MT_SIMPLE).

Constants

public static final int BREAK

The CBOR-encoded "break" stop code for unlimited arrays/maps.

Constant Value: 31 (0x0000001f)

public static final int DOUBLE_PRECISION_FLOAT

Denotes a double-precision float (eight-byte IEEE 754, see #MT_FLOAT).

Constant Value: 27 (0x0000001b)

public static final int EIGHT_BYTES

Denotes a eight-byte value (uint64).

Constant Value: 27 (0x0000001b)

public static final int FALSE

The CBOR-encoded boolean false value (encoded as "simple value": #MT_SIMPLE).

Constant Value: 20 (0x00000014)

public static final int FOUR_BYTES

Denotes a four-byte value (uint32).

Constant Value: 26 (0x0000001a)

public static final int HALF_PRECISION_FLOAT

Denotes a half-precision float (two-byte IEEE 754, see #MT_FLOAT).

Constant Value: 25 (0x00000019)

public static final int NULL

The CBOR-encoded null value (encoded as "simple value": #MT_SIMPLE).

Constant Value: 22 (0x00000016)

public static final int ONE_BYTE

Denotes a one-byte value (uint8).

Constant Value: 24 (0x00000018)

public static final int SINGLE_PRECISION_FLOAT

Denotes a single-precision float (four-byte IEEE 754, see #MT_FLOAT).

Constant Value: 26 (0x0000001a)

public static final int TAG_BASE64_ENCODED

Semantic tag value describing a base64 encoded string (UTF8 string).

Constant Value: 34 (0x00000022)

public static final int TAG_BASE64_URL_ENCODED

Semantic tag value describing a base64url encoded string (UTF8 string).

Constant Value: 33 (0x00000021)

public static final int TAG_BIGDECIMAL

Semantic tag value describing a big decimal value (two-element array, base 2).

Constant Value: 5 (0x00000005)

public static final int TAG_CBOR_ENCODED

Semantic tag value describing an encoded CBOR data item (byte string).

Constant Value: 24 (0x00000018)

public static final int TAG_CBOR_MARKER

Semantic tag value describing CBOR content.

Constant Value: 55799 (0x0000d9f7)

public static final int TAG_DECIMAL_FRACTION

Semantic tag value describing a decimal fraction value (two-element array, base 10).

Constant Value: 4 (0x00000004)

public static final int TAG_EPOCH_DATE_TIME

Semantic tag value describing date/time values as Epoch timestamp (numeric, RFC3339).

Constant Value: 1 (0x00000001)

public static final int TAG_EXPECTED_BASE16_ENCODED

Semantic tag value describing an expected conversion to base16 encoding.

Constant Value: 23 (0x00000017)

public static final int TAG_EXPECTED_BASE64_ENCODED

Semantic tag value describing an expected conversion to base64 encoding.

Constant Value: 22 (0x00000016)

public static final int TAG_EXPECTED_BASE64_URL_ENCODED

Semantic tag value describing an expected conversion to base64url encoding.

Constant Value: 21 (0x00000015)

public static final int TAG_MIME_MESSAGE

Semantic tag value describing a MIME message (UTF8 string, RFC2045).

Constant Value: 36 (0x00000024)

public static final int TAG_NEGATIVE_BIGINT

Semantic tag value describing a negative big integer value (byte string).

Constant Value: 3 (0x00000003)

public static final int TAG_POSITIVE_BIGINT

Semantic tag value describing a positive big integer value (byte string).

Constant Value: 2 (0x00000002)

public static final int TAG_REGEXP

Semantic tag value describing a regular expression string (UTF8 string, PCRE).

Constant Value: 35 (0x00000023)

public static final int TAG_STANDARD_DATE_TIME

Semantic tag value describing date/time values in the standard format (UTF8 string, RFC3339).

Constant Value: 0 (0x00000000)

public static final int TAG_URI

Semantic tag value describing an URL (UTF8 string).

Constant Value: 32 (0x00000020)

public static final int TRUE

The CBOR-encoded boolean true value (encoded as "simple value": #MT_SIMPLE).

Constant Value: 21 (0x00000015)

public static final int TWO_BYTES

Denotes a two-byte value (uint16).

Constant Value: 25 (0x00000019)

public static final int TYPE_ARRAY

Major type 4: array of items.

Constant Value: 4 (0x00000004)

public static final int TYPE_BYTE_STRING

Major type 2: byte string.

Constant Value: 2 (0x00000002)

public static final int TYPE_FLOAT_SIMPLE

Major type 7: floating point, simple data types.

Constant Value: 7 (0x00000007)

public static final int TYPE_MAP

Major type 5: map of pairs.

Constant Value: 5 (0x00000005)

public static final int TYPE_NEGATIVE_INTEGER

Major type 1: negative integers.

Constant Value: 1 (0x00000001)

public static final int TYPE_TAG

Major type 6: semantic tags.

Constant Value: 6 (0x00000006)

public static final int TYPE_TEXT_STRING

Major type 3: text/UTF8 string.

Constant Value: 3 (0x00000003)

public static final int TYPE_UNSIGNED_INTEGER

Major type 0: unsigned integers.

Constant Value: 0 (0x00000000)

public static final int UNDEFINED

The CBOR-encoded "undefined" value (encoded as "simple value": #MT_SIMPLE).

Constant Value: 23 (0x00000017)