Package ej.cbor

Interface CborConstants


  • public interface CborConstants
    Constant values used by the CBOR format.
    • Field Summary

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

      • TYPE_UNSIGNED_INTEGER

        static final int TYPE_UNSIGNED_INTEGER
        Major type 0: unsigned integers.
        See Also:
        Constant Field Values
      • TYPE_NEGATIVE_INTEGER

        static final int TYPE_NEGATIVE_INTEGER
        Major type 1: negative integers.
        See Also:
        Constant Field Values
      • TYPE_BYTE_STRING

        static final int TYPE_BYTE_STRING
        Major type 2: byte string.
        See Also:
        Constant Field Values
      • TYPE_TEXT_STRING

        static final int TYPE_TEXT_STRING
        Major type 3: text/UTF8 string.
        See Also:
        Constant Field Values
      • TYPE_FLOAT_SIMPLE

        static final int TYPE_FLOAT_SIMPLE
        Major type 7: floating point, simple data types.
        See Also:
        Constant Field Values
      • TWO_BYTES

        static final int TWO_BYTES
        Denotes a two-byte value (uint16).
        See Also:
        Constant Field Values
      • FOUR_BYTES

        static final int FOUR_BYTES
        Denotes a four-byte value (uint32).
        See Also:
        Constant Field Values
      • EIGHT_BYTES

        static final int EIGHT_BYTES
        Denotes a eight-byte value (uint64).
        See Also:
        Constant Field Values
      • FALSE

        static final int FALSE
        The CBOR-encoded boolean false value (encoded as "simple value": #MT_SIMPLE).
        See Also:
        Constant Field Values
      • TRUE

        static final int TRUE
        The CBOR-encoded boolean true value (encoded as "simple value": #MT_SIMPLE).
        See Also:
        Constant Field Values
      • NULL

        static final int NULL
        The CBOR-encoded null value (encoded as "simple value": #MT_SIMPLE).
        See Also:
        Constant Field Values
      • UNDEFINED

        static final int UNDEFINED
        The CBOR-encoded "undefined" value (encoded as "simple value": #MT_SIMPLE).
        See Also:
        Constant Field Values
      • HALF_PRECISION_FLOAT

        static final int HALF_PRECISION_FLOAT
        Denotes a half-precision float (two-byte IEEE 754, see #MT_FLOAT).
        See Also:
        Constant Field Values
      • SINGLE_PRECISION_FLOAT

        static final int SINGLE_PRECISION_FLOAT
        Denotes a single-precision float (four-byte IEEE 754, see #MT_FLOAT).
        See Also:
        Constant Field Values
      • DOUBLE_PRECISION_FLOAT

        static final int DOUBLE_PRECISION_FLOAT
        Denotes a double-precision float (eight-byte IEEE 754, see #MT_FLOAT).
        See Also:
        Constant Field Values
      • BREAK

        static final int BREAK
        The CBOR-encoded "break" stop code for unlimited arrays/maps.
        See Also:
        Constant Field Values
      • TAG_STANDARD_DATE_TIME

        static final int TAG_STANDARD_DATE_TIME
        Semantic tag value describing date/time values in the standard format (UTF8 string, RFC3339).
        See Also:
        Constant Field Values
      • TAG_EPOCH_DATE_TIME

        static final int TAG_EPOCH_DATE_TIME
        Semantic tag value describing date/time values as Epoch timestamp (numeric, RFC3339).
        See Also:
        Constant Field Values
      • TAG_POSITIVE_BIGINT

        static final int TAG_POSITIVE_BIGINT
        Semantic tag value describing a positive big integer value (byte string).
        See Also:
        Constant Field Values
      • TAG_NEGATIVE_BIGINT

        static final int TAG_NEGATIVE_BIGINT
        Semantic tag value describing a negative big integer value (byte string).
        See Also:
        Constant Field Values
      • TAG_DECIMAL_FRACTION

        static final int TAG_DECIMAL_FRACTION
        Semantic tag value describing a decimal fraction value (two-element array, base 10).
        See Also:
        Constant Field Values
      • TAG_BIGDECIMAL

        static final int TAG_BIGDECIMAL
        Semantic tag value describing a big decimal value (two-element array, base 2).
        See Also:
        Constant Field Values
      • TAG_EXPECTED_BASE64_URL_ENCODED

        static final int TAG_EXPECTED_BASE64_URL_ENCODED
        Semantic tag value describing an expected conversion to base64url encoding.
        See Also:
        Constant Field Values
      • TAG_EXPECTED_BASE64_ENCODED

        static final int TAG_EXPECTED_BASE64_ENCODED
        Semantic tag value describing an expected conversion to base64 encoding.
        See Also:
        Constant Field Values
      • TAG_EXPECTED_BASE16_ENCODED

        static final int TAG_EXPECTED_BASE16_ENCODED
        Semantic tag value describing an expected conversion to base16 encoding.
        See Also:
        Constant Field Values
      • TAG_CBOR_ENCODED

        static final int TAG_CBOR_ENCODED
        Semantic tag value describing an encoded CBOR data item (byte string).
        See Also:
        Constant Field Values
      • TAG_URI

        static final int TAG_URI
        Semantic tag value describing an URL (UTF8 string).
        See Also:
        Constant Field Values
      • TAG_BASE64_URL_ENCODED

        static final int TAG_BASE64_URL_ENCODED
        Semantic tag value describing a base64url encoded string (UTF8 string).
        See Also:
        Constant Field Values
      • TAG_BASE64_ENCODED

        static final int TAG_BASE64_ENCODED
        Semantic tag value describing a base64 encoded string (UTF8 string).
        See Also:
        Constant Field Values
      • TAG_REGEXP

        static final int TAG_REGEXP
        Semantic tag value describing a regular expression string (UTF8 string, PCRE).
        See Also:
        Constant Field Values
      • TAG_MIME_MESSAGE

        static final int TAG_MIME_MESSAGE
        Semantic tag value describing a MIME message (UTF8 string, RFC2045).
        See Also:
        Constant Field Values
      • TAG_CBOR_MARKER

        static final int TAG_CBOR_MARKER
        Semantic tag value describing CBOR content.
        See Also:
        Constant Field Values