Uses of Class
com.upokecenter.cbor.CBORObject

  • Uses of CBORObject in com.upokecenter.cbor

    Fields in com.upokecenter.cbor declared as CBORObject
    Modifier and Type
    Field
    Description
    static final CBORObject
    CBORObject.False
    Represents the value false.
    static final CBORObject
    CBORObject.NaN
    A not-a-number value.
    static final CBORObject
    CBORObject.NegativeInfinity
    The value negative infinity.
    static final CBORObject
    CBORObject.Null
    Represents the value null.
    static final CBORObject
    CBORObject.PositiveInfinity
    The value positive infinity.
    static final CBORObject
    CBORObject.True
    Represents the value true.
    static final CBORObject
    CBORObject.Undefined
    Represents the value undefined.
    static final CBORObject
    CBORObject.Zero
    Gets a CBOR object for the number zero.
    Methods in com.upokecenter.cbor that return CBORObject
    Modifier and Type
    Method
    Description
    CBORObject.Abs()
    Deprecated.
    Instead, convert this object to a number (with .getAsNumber()()), and use that number's.getAbs()() method.
    CBORObject.Add(CBORObject obj)
    Adds a new object to the end of this array.
    CBORObject.Add(Object obj)
    Converts an object to a CBOR object and adds it to the end of this array.
    CBORObject.Add(Object key, Object valueOb)
    Adds a new key and its value to this CBOR map, or adds the value if the key doesn't exist.
    static CBORObject
    CBORObject.Addition(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Add() method.
    CBORObject.ApplyJSONPatch(CBORObject patch)
    Returns a copy of this object after applying the operations in a JSON patch, in the form of a CBOR object.
    CBORObject.AtJSONPointer(String pointer)
    Gets the CBOR object referred to by a JSON Pointer according to RFC6901.
    CBORObject.AtJSONPointer(String pointer, CBORObject defaultValue)
    Gets the CBOR object referred to by a JSON Pointer according to RFC6901, or a default value if the operation fails.
    CBORDateConverter.DateTimeFieldsToCBORObject(int year, int[] lesserFields)
    Converts a date/time in the form of a year, month, day, hour, minute, second, fractional seconds, and time offset to a CBOR object.
    CBORDateConverter.DateTimeFieldsToCBORObject(int smallYear, int month, int day)
    Converts a date/time in the form of a year, month, and day to a CBOR object.
    CBORDateConverter.DateTimeFieldsToCBORObject(int smallYear, int month, int day, int hour, int minute, int second)
    Converts a date/time in the form of a year, month, day, hour, minute, and second to a CBOR object.
    CBORDateConverter.DateTimeFieldsToCBORObject(com.upokecenter.numbers.EInteger bigYear, int[] lesserFields)
    Converts a date/time in the form of a year, month, day, hour, minute, second, fractional seconds, and time offset to a CBOR object.
    static CBORObject
    CBORObject.DecodeFromBytes(byte[] data)
    Generates a CBOR object from an array of CBOR-encoded bytes.
    static CBORObject
    CBORObject.DecodeFromBytes(byte[] data, CBOREncodeOptions options)
    Generates a CBOR object from an array of CBOR-encoded bytes, using the given CBOREncodeOptions object to control the decoding process.
    static CBORObject[]
    CBORObject.DecodeSequenceFromBytes(byte[] data)
    Generates a sequence of CBOR objects from an array of CBOR-encoded bytes.
    static CBORObject[]
    CBORObject.DecodeSequenceFromBytes(byte[] data, CBOREncodeOptions options)
    Generates a sequence of CBOR objects from an array of CBOR-encoded bytes.
    static CBORObject
    CBORObject.Divide(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Divide() method.
    static CBORObject
    CBORObject.FromFloatingPointBits(long floatingBits, int byteCount)
    Generates a CBOR object from a floating-point number represented by its bits.
    static CBORObject
    CBORObject.FromJSONBytes(byte[] bytes)
    Generates a CBOR object from a byte array in JavaScript object Notation (JSON) format.
    static CBORObject
    CBORObject.FromJSONBytes(byte[] bytes, int offset, int count)
    Generates a CBOR object from a byte array in JavaScript object Notation (JSON) format.
    static CBORObject
    CBORObject.FromJSONBytes(byte[] bytes, int offset, int count, JSONOptions jsonoptions)
    Generates a CBOR object from a byte array in JavaScript object Notation (JSON) format, using the specified options to control the decoding process.
    static CBORObject
    CBORObject.FromJSONBytes(byte[] bytes, JSONOptions jsonoptions)
    Generates a CBOR object from a byte array in JavaScript object Notation (JSON) format, using the specified options to control the decoding process.
    static CBORObject[]
    CBORObject.FromJSONSequenceBytes(byte[] bytes)
    Generates a list of CBOR objects from an array of bytes in JavaScript object Notation (JSON) text sequence format (RFC 7464).
    static CBORObject[]
    CBORObject.FromJSONSequenceBytes(byte[] data, JSONOptions options)
    Generates a list of CBOR objects from an array of bytes in JavaScript object Notation (JSON) text sequence format (RFC 7464), using the specified options to control the decoding process.
    static CBORObject
    CBORObject.FromJSONString(String str)
    Generates a CBOR object from a text string in JavaScript object Notation (JSON) format.
    static CBORObject
    CBORObject.FromJSONString(String str, int offset, int count)
    Generates a CBOR object from a text string in JavaScript object Notation (JSON) format.
    static CBORObject
    CBORObject.FromJSONString(String str, int offset, int count, JSONOptions jsonoptions)
    Generates a CBOR object from a text string in JavaScript object Notation (JSON) format, using the specified options to control the decoding process.
    static CBORObject
    CBORObject.FromJSONString(String str, CBOREncodeOptions options)
    Deprecated.
    Instead, use.getFromJSONString()(str, new JSONOptions(\allowduplicatekeys = true\)) or .getFromJSONString()(str, new JSONOptions(\allowduplicatekeys = false\)), as appropriate.
    static CBORObject
    CBORObject.FromJSONString(String str, JSONOptions jsonoptions)
    Generates a CBOR object from a text string in JavaScript object Notation (JSON) format, using the specified options to control the decoding process.
    static CBORObject
    CBORObject.FromObject(boolean value)
    Returns the CBOR true value or false value, depending on "value".
    static CBORObject
    CBORObject.FromObject(byte value)
    Generates a CBOR object from a byte (0 to 255).
    static CBORObject
    CBORObject.FromObject(byte[] bytes)
    Generates a CBOR object from an array of 8-bit bytes; the byte array is copied to a new byte array in this process.
    static CBORObject
    CBORObject.FromObject(double value)
    Generates a CBOR object from a 64-bit floating-point number.
    static CBORObject
    CBORObject.FromObject(float value)
    Generates a CBOR object from a 32-bit floating-point number.
    static CBORObject
    CBORObject.FromObject(int value)
    Generates a CBOR object from a 32-bit signed integer.
    static CBORObject
    CBORObject.FromObject(int[] array)
    Generates a CBOR object from an array of 32-bit integers.
    static CBORObject
    CBORObject.FromObject(long value)
    Generates a CBOR object from a 64-bit signed integer.
    static CBORObject
    CBORObject.FromObject(long[] array)
    Generates a CBOR object from an array of 64-bit integers.
    static CBORObject
    CBORObject.FromObject(short value)
    Generates a CBOR object from a 16-bit signed integer.
    static CBORObject
    CBORObject.FromObject(CBORObject value)
    Generates a CBOR object from a CBOR object.
    static CBORObject
    CBORObject.FromObject(CBORObject[] array)
    Generates a CBOR object from an array of CBOR objects.
    static CBORObject
    CBORObject.FromObject(com.upokecenter.numbers.EDecimal bigValue)
    Generates a CBOR object from a decimal number.
    static CBORObject
    CBORObject.FromObject(com.upokecenter.numbers.EFloat bigValue)
    Generates a CBOR object from an arbitrary-precision binary floating-point number.
    static CBORObject
    CBORObject.FromObject(com.upokecenter.numbers.EInteger bigintValue)
    Generates a CBOR object from an arbitrary-precision integer.
    static CBORObject
    CBORObject.FromObject(com.upokecenter.numbers.ERational bigValue)
    Generates a CBOR object from an arbitrary-precision rational number.
    static CBORObject
    CBORObject.FromObject(Object obj)
    Generates a CBORObject from an arbitrary object.
    static CBORObject
    CBORObject.FromObject(Object obj, CBORTypeMapper mapper)
    Generates a CBORObject from an arbitrary object.
    static CBORObject
    CBORObject.FromObject(Object obj, CBORTypeMapper mapper, PODOptions options)
    Generates a CBORObject from an arbitrary object, using the given options to control how certain objects are converted to CBOR objects.
    static CBORObject
    CBORObject.FromObject(Object obj, PODOptions options)
    Generates a CBORObject from an arbitrary object.
    static CBORObject
    CBORObject.FromObject(String strValue)
    Generates a CBOR object from a text string.
    static CBORObject
    CBORObject.FromObjectAndTag(Object valueObValue, int smallTag)
    Generates a CBOR object from an arbitrary object and gives the resulting object a tag in addition to its existing tags (the new tag is made the outermost tag).
    static CBORObject
    CBORObject.FromObjectAndTag(Object valueOb, com.upokecenter.numbers.EInteger bigintTag)
    Generates a CBOR object from an arbitrary object and gives the resulting object a tag in addition to its existing tags (the new tag is made the outermost tag).
    static CBORObject
    CBORObject.FromSimpleValue(int simpleValue)
    Creates a CBOR object from a simple value number.
    CBORObject.get(int index)
    Gets the value of a CBOR object by integer index in this array or by integer key in this map.
    CBORObject.get(CBORObject key)
    Gets the value of a CBOR object by integer index in this array or by CBOR object key in this map.
    CBORObject.get(String key)
    Gets the value of a CBOR object in this map, using a string as the key.
    CBORObject.GetOrDefault(Object key, CBORObject defaultValue)
    Gets the value of a CBOR object by integer index in this array or by CBOR object key in this map, or a default value if that value is not found.
    CBORObject.Insert(int index, Object valueOb)
    Inserts an object at the specified position in this CBOR array.
    static CBORObject
    CBORObject.Multiply(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Multiply() method.
    CBORObject.Negate()
    Deprecated.
    Instead, convert this object to a number (with .AsNumber()), and use that number's.Negate() method.
    static CBORObject
    CBORObject.NewArray()
    Creates a new empty CBOR array.
    static CBORObject
    CBORObject.NewMap()
    Creates a new empty CBOR map that stores its keys in an undefined order.
    static CBORObject
    CBORObject.NewOrderedMap()
    Creates a new empty CBOR map that ensures that keys are stored in the order in which they are first inserted.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(byte[] bytes)
    Parses a number from a byte sequence whose format follows the JSON specification.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(byte[] bytes, int offset, int count)
    Parses a number whose format follows the JSON specification (RFC 8259) from a portion of a byte sequence, and converts that number to a CBOR object.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(byte[] bytes, int offset, int count, JSONOptions options)
    Parses a number from a byte sequence whose format follows the JSON specification (RFC 8259) and converts that number to a CBOR object.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(byte[] bytes, JSONOptions options)
    Parses a number from a byte sequence whose format follows the JSON specification (RFC 8259) and converts that number to a CBOR object.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(char[] chars)
    Parses a number from a sequence of char s whose format follows the JSON specification.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(char[] chars, int offset, int count)
    Parses a number whose format follows the JSON specification (RFC 8259) from a portion of a sequence of char s, and converts that number to a CBOR object.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(char[] chars, int offset, int count, JSONOptions options)
    Parses a number from a sequence of char s whose format follows the JSON specification (RFC 8259) and converts that number to a CBOR object.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(char[] chars, JSONOptions options)
    Parses a number from a sequence of char s whose format follows the JSON specification (RFC 8259) and converts that number to a CBOR object.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(String str)
    Parses a number whose format follows the JSON specification.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(String str, boolean integersOnly, boolean positiveOnly)
    Deprecated.
    Call the one-argument version of this method instead.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(String str, boolean integersOnly, boolean positiveOnly, boolean preserveNegativeZero)
    Deprecated.
    Instead, call ParseJSONNumber(str, jsonoptions) with a JSONOptions that sets preserveNegativeZero to the desired value, either true or false.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(String str, int offset, int count)
    Parses a number whose format follows the JSON specification (RFC 8259) from a portion of a text string, and converts that number to a CBOR object.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(String str, int offset, int count, JSONOptions options)
    Parses a number whose format follows the JSON specification (RFC 8259) and converts that number to a CBOR object.
    static CBORObject
    CBORDataUtilities.ParseJSONNumber(String str, JSONOptions options)
    Parses a number whose format follows the JSON specification (RFC 8259) and converts that number to a CBOR object.
    static CBORObject
    CBORObject.Read(InputStream stream)
    Reads an object in CBOR format from a data stream.
    static CBORObject
    CBORObject.Read(InputStream stream, CBOREncodeOptions options)
    Reads an object in CBOR format from a data stream, using the specified options to control the decoding process.
    static CBORObject
    CBORObject.ReadJSON(InputStream stream)
    Generates a CBOR object from a data stream in JavaScript object Notation (JSON) format.
    static CBORObject
    CBORObject.ReadJSON(InputStream stream, CBOREncodeOptions options)
    Deprecated.
    Instead, use.getReadJSON()(stream, new JSONOptions(\allowduplicatekeys = true\)) or .getReadJSON()(stream, new JSONOptions(\allowduplicatekeys = false\)), as appropriate.
    static CBORObject
    CBORObject.ReadJSON(InputStream stream, JSONOptions jsonoptions)
    Generates a CBOR object from a data stream in JavaScript object Notation (JSON) format, using the specified options to control the decoding process.
    static CBORObject[]
    CBORObject.ReadJSONSequence(InputStream stream)
    Generates a list of CBOR objects from a data stream in JavaScript object Notation (JSON) text sequence format (RFC 7464).
    static CBORObject[]
    CBORObject.ReadJSONSequence(InputStream stream, JSONOptions jsonoptions)
    Generates a list of CBOR objects from a data stream in JavaScript object Notation (JSON) text sequence format (RFC 7464).
    static CBORObject[]
    CBORObject.ReadSequence(InputStream stream)
    Reads a sequence of objects in CBOR format from a data stream.
    static CBORObject[]
    CBORObject.ReadSequence(InputStream stream, CBOREncodeOptions options)
    Reads a sequence of objects in CBOR format from a data stream.
    static CBORObject
    CBORObject.Remainder(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Remainder() method.
    CBORObject.Set(Object key, Object valueOb)
    Maps an object to a key in this CBOR map, or adds the value if the key doesn't exist.
    static CBORObject
    CBORObject.Subtract(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Subtract() method.
    CBORDateConverter.ToCBORObject(Date obj)
    Converts a java.util.Date (in DotNet) or Date (in Java) to a CBOR object in a manner specified by this converter's conversion type.
    CBORNumber.ToCBORObject()
    Converts this object's value to a CBOR object.
    ICBORConverter.ToCBORObject(T obj)
    Converts an object to a CBOR object.
    CBORObject.Untag()
    Gets an object with the same value as this one but without the tags it has, if any.
    CBORObject.UntagOne()
    Gets an object with the same value as this one but without this object's outermost tag, if any.
    CBORObject.WithTag(int smallTag)
    Generates a CBOR object from an arbitrary object and gives the resulting object a tag in addition to its existing tags (the new tag is made the outermost tag).
    CBORObject.WithTag(com.upokecenter.numbers.EInteger bigintTag)
    Generates a CBOR object from this one, but gives the resulting object a tag in addition to its existing tags (the new tag is made the outermost tag).
    Methods in com.upokecenter.cbor that return types with arguments of type CBORObject
    Modifier and Type
    Method
    Description
    CBORObject.getEntries()
    Gets a collection of the key/value pairs stored in this CBOR object, if it's a map.
    CBORObject.getEntries()
    Gets a collection of the key/value pairs stored in this CBOR object, if it's a map.
    CBORObject.getKeys()
    Gets a collection of the keys of this CBOR object.
    CBORObject.getValues()
    Gets a collection of the values of this CBOR object, if it's a map or an array.
    Methods in com.upokecenter.cbor with parameters of type CBORObject
    Modifier and Type
    Method
    Description
    CBORObject.Add(CBORObject obj)
    Adds a new object to the end of this array.
    static CBORObject
    CBORObject.Addition(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Add() method.
    CBORObject.ApplyJSONPatch(CBORObject patch)
    Returns a copy of this object after applying the operations in a JSON patch, in the form of a CBOR object.
    CBORObject.AtJSONPointer(String pointer, CBORObject defaultValue)
    Gets the CBOR object referred to by a JSON Pointer according to RFC6901, or a default value if the operation fails.
    int
    CBORObject.compareTo(CBORObject other)
    Compares two CBOR objects.
    int
    CBORObject.CompareToIgnoreTags(CBORObject other)
    Compares this object and another CBOR object, ignoring the tags they have, if any.
    boolean
    CBORObject.ContainsKey(CBORObject key)
    Determines whether a value of the given key exists in this object.
    static CBORObject
    CBORObject.Divide(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Divide() method.
    boolean
    CBORObject.equals(CBORObject other)
    Compares the equality of two CBOR objects.
    CBORDateConverter.FromCBORObject(CBORObject obj)
    Converts a CBOR object to a java.util.Date (in DotNet) or a Date (in Java).
    static CBORNumber
    CBORNumber.FromCBORObject(CBORObject o)
    Creates a CBOR number object from a CBOR object representing a number (that is, one for which the IsNumber property in.NET or the isNumber() method in Java returns true).
    ICBORToFromConverter.FromCBORObject(CBORObject obj)
    Converts a CBOR object to a custom type.
    static CBORObject
    CBORObject.FromObject(CBORObject value)
    Generates a CBOR object from a CBOR object.
    static CBORObject
    CBORObject.FromObject(CBORObject[] array)
    Generates a CBOR object from an array of CBOR objects.
    CBORObject.get(CBORObject key)
    Gets the value of a CBOR object by integer index in this array or by CBOR object key in this map.
    CBORObject.GetOrDefault(Object key, CBORObject defaultValue)
    Gets the value of a CBOR object by integer index in this array or by CBOR object key in this map, or a default value if that value is not found.
    static CBORObject
    CBORObject.Multiply(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Multiply() method.
    static CBORObject
    CBORObject.Remainder(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Remainder() method.
    boolean
    CBORObject.Remove(CBORObject obj)
    If this object is an array, removes the first instance of the specified item from the array.
    void
    CBORObject.set(int index, CBORObject value)
    Sets the value of a CBOR object by integer index in this array or by integer key in this map.
    void
    CBORObject.set(CBORObject key, CBORObject value)
    Sets the value of a CBOR object by integer index in this array or by CBOR object key in this map.
    void
    CBORObject.set(String key, CBORObject value)
    Sets the value of a CBOR object in this map, using a string as the key.
    static CBORObject
    CBORObject.Subtract(CBORObject first, CBORObject second)
    Deprecated.
    Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Subtract() method.
    boolean
    CBORDateConverter.TryGetDateTimeFields(CBORObject obj, com.upokecenter.numbers.EInteger[] year, int[] lesserFields)
    Tries to extract the fields of a date and time in the form of a CBOR object.
    static void
    CBORObject.Write(CBORObject value, OutputStream stream)
    Writes a CBOR object to a CBOR data stream.