Uses of Class
com.upokecenter.cbor.CBORObject

Packages that use CBORObject 
Package Description
com.upokecenter.cbor  
  • Uses of CBORObject in com.upokecenter.cbor

    Fields in com.upokecenter.cbor declared as CBORObject 
    Modifier and Type Field Description
    static CBORObject CBORObject.False
    Represents the value false.
    static CBORObject CBORObject.NaN
    A not-a-number value.
    static CBORObject CBORObject.NegativeInfinity
    The value negative infinity.
    static CBORObject CBORObject.Null
    Represents the value null.
    static CBORObject CBORObject.PositiveInfinity
    The value positive infinity.
    static CBORObject CBORObject.True
    Represents the value true.
    static CBORObject CBORObject.Undefined
    Represents the value undefined.
    static 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 CBORObject.Abs()
    Deprecated.
    Instead, convert this object to a number (with .getAsNumber()()), and use that number's.getAbs()() method.
    CBORObject CBORObject.Add​(CBORObject obj)
    Adds a new object to the end of this array.
    CBORObject CBORObject.Add​(java.lang.Object obj)
    Converts an object to a CBOR object and adds it to the end of this array.
    CBORObject CBORObject.Add​(java.lang.Object key, java.lang.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 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 CBORObject.AtJSONPointer​(java.lang.String pointer)
    Gets the CBOR object referred to by a JSON Pointer according to RFC6901.
    CBORObject CBORObject.AtJSONPointer​(java.lang.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.
    CBORObject 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.
    CBORObject 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.
    CBORObject 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.
    CBORObject 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​(java.lang.String str)
    Generates a CBOR object from a text string in JavaScript object Notation (JSON) format.
    static CBORObject CBORObject.FromJSONString​(java.lang.String str, int offset, int count)
    Generates a CBOR object from a text string in JavaScript object Notation (JSON) format.
    static CBORObject CBORObject.FromJSONString​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.Object obj)
    Generates a CBORObject from an arbitrary object.
    static CBORObject CBORObject.FromObject​(java.lang.Object obj, CBORTypeMapper mapper)
    Generates a CBORObject from an arbitrary object.
    static CBORObject CBORObject.FromObject​(java.lang.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​(java.lang.Object obj, PODOptions options)
    Generates a CBORObject from an arbitrary object.
    static CBORObject CBORObject.FromObject​(java.lang.String strValue)
    Generates a CBOR object from a text string.
    static CBORObject CBORObject.FromObjectAndTag​(java.lang.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​(java.lang.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 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 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 CBORObject.get​(java.lang.String key)
    Gets the value of a CBOR object in this map, using a string as the key.
    CBORObject CBORObject.GetOrDefault​(java.lang.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 CBORObject.Insert​(int index, java.lang.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 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​(java.lang.String str)
    Parses a number whose format follows the JSON specification.
    static CBORObject CBORDataUtilities.ParseJSONNumber​(java.lang.String str, boolean integersOnly, boolean positiveOnly)
    Deprecated.
    Call the one-argument version of this method instead.
    static CBORObject CBORDataUtilities.ParseJSONNumber​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.io.InputStream stream)
    Reads an object in CBOR format from a data stream.
    static CBORObject CBORObject.Read​(java.io.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​(java.io.InputStream stream)
    Generates a CBOR object from a data stream in JavaScript object Notation (JSON) format.
    static CBORObject CBORObject.ReadJSON​(java.io.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​(java.io.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​(java.io.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​(java.io.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​(java.io.InputStream stream)
    Reads a sequence of objects in CBOR format from a data stream.
    static CBORObject[] CBORObject.ReadSequence​(java.io.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 CBORObject.Set​(java.lang.Object key, java.lang.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.
    CBORObject CBORDateConverter.ToCBORObject​(java.util.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.
    CBORObject CBORNumber.ToCBORObject()
    Converts this object's value to a CBOR object.
    CBORObject ICBORConverter.ToCBORObject​(T obj)
    Converts an object to a CBOR object.
    CBORObject CBORObject.Untag()
    Gets an object with the same value as this one but without the tags it has, if any.
    CBORObject CBORObject.UntagOne()
    Gets an object with the same value as this one but without this object's outermost tag, if any.
    CBORObject 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 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
    java.util.Collection<java.util.Map.Entry<CBORObject,​CBORObject>> CBORObject.getEntries()
    Gets a collection of the key/value pairs stored in this CBOR object, if it's a map.
    java.util.Collection<java.util.Map.Entry<CBORObject,​CBORObject>> CBORObject.getEntries()
    Gets a collection of the key/value pairs stored in this CBOR object, if it's a map.
    java.util.Collection<CBORObject> CBORObject.getKeys()
    Gets a collection of the keys of this CBOR object.
    java.util.Collection<CBORObject> 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 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 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 CBORObject.AtJSONPointer​(java.lang.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.
    java.util.Date 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).
    T 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 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 CBORObject.GetOrDefault​(java.lang.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​(java.lang.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, java.io.OutputStream stream)
    Writes a CBOR object to a CBOR data stream.