Uses of Class
com.upokecenter.cbor.CBORObject
-
Uses of CBORObject in com.upokecenter.cbor
Fields in com.upokecenter.cbor declared as CBORObjectModifier and TypeFieldDescriptionstatic final CBORObjectCBORObject.FalseRepresents the value false.static final CBORObjectCBORObject.NaNA not-a-number value.static final CBORObjectCBORObject.NegativeInfinityThe value negative infinity.static final CBORObjectCBORObject.NullRepresents the value null.static final CBORObjectCBORObject.PositiveInfinityThe value positive infinity.static final CBORObjectCBORObject.TrueRepresents the value true.static final CBORObjectCBORObject.UndefinedRepresents the value undefined.static final CBORObjectCBORObject.ZeroGets a CBOR object for the number zero.Methods in com.upokecenter.cbor that return CBORObjectModifier and TypeMethodDescriptionCBORObject.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.Converts an object to a CBOR object and adds it to the end of this array.Adds a new key and its value to this CBOR map, or adds the value if the key doesn't exist.static CBORObjectCBORObject.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 CBORObjectCBORObject.DecodeFromBytes(byte[] data) Generates a CBOR object from an array of CBOR-encoded bytes.static CBORObjectCBORObject.DecodeFromBytes(byte[] data, CBOREncodeOptions options) Generates a CBOR object from an array of CBOR-encoded bytes, using the givenCBOREncodeOptionsobject 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 CBORObjectCBORObject.Divide(CBORObject first, CBORObject second) Deprecated.Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Divide() method.static CBORObjectCBORObject.FromFloatingPointBits(long floatingBits, int byteCount) Generates a CBOR object from a floating-point number represented by its bits.static CBORObjectCBORObject.FromJSONBytes(byte[] bytes) Generates a CBOR object from a byte array in JavaScript object Notation (JSON) format.static CBORObjectCBORObject.FromJSONBytes(byte[] bytes, int offset, int count) Generates a CBOR object from a byte array in JavaScript object Notation (JSON) format.static CBORObjectCBORObject.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 CBORObjectCBORObject.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 CBORObjectCBORObject.FromJSONString(String str) Generates a CBOR object from a text string in JavaScript object Notation (JSON) format.static CBORObjectCBORObject.FromJSONString(String str, int offset, int count) Generates a CBOR object from a text string in JavaScript object Notation (JSON) format.static CBORObjectCBORObject.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 CBORObjectCBORObject.FromJSONString(String str, CBOREncodeOptions options) Deprecated.Instead, use.getFromJSONString()(str, new JSONOptions(\allowduplicatekeys = true\)) or .getFromJSONString()(str, new JSONOptions(\allowduplicatekeys = false\)), as appropriate.static CBORObjectCBORObject.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 CBORObjectCBORObject.FromObject(boolean value) Returns the CBOR true value or false value, depending on "value".static CBORObjectCBORObject.FromObject(byte value) Generates a CBOR object from a byte (0 to 255).static CBORObjectCBORObject.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 CBORObjectCBORObject.FromObject(double value) Generates a CBOR object from a 64-bit floating-point number.static CBORObjectCBORObject.FromObject(float value) Generates a CBOR object from a 32-bit floating-point number.static CBORObjectCBORObject.FromObject(int value) Generates a CBOR object from a 32-bit signed integer.static CBORObjectCBORObject.FromObject(int[] array) Generates a CBOR object from an array of 32-bit integers.static CBORObjectCBORObject.FromObject(long value) Generates a CBOR object from a 64-bit signed integer.static CBORObjectCBORObject.FromObject(long[] array) Generates a CBOR object from an array of 64-bit integers.static CBORObjectCBORObject.FromObject(short value) Generates a CBOR object from a 16-bit signed integer.static CBORObjectCBORObject.FromObject(CBORObject value) Generates a CBOR object from a CBOR object.static CBORObjectCBORObject.FromObject(CBORObject[] array) Generates a CBOR object from an array of CBOR objects.static CBORObjectCBORObject.FromObject(com.upokecenter.numbers.EDecimal bigValue) Generates a CBOR object from a decimal number.static CBORObjectCBORObject.FromObject(com.upokecenter.numbers.EFloat bigValue) Generates a CBOR object from an arbitrary-precision binary floating-point number.static CBORObjectCBORObject.FromObject(com.upokecenter.numbers.EInteger bigintValue) Generates a CBOR object from an arbitrary-precision integer.static CBORObjectCBORObject.FromObject(com.upokecenter.numbers.ERational bigValue) Generates a CBOR object from an arbitrary-precision rational number.static CBORObjectCBORObject.FromObject(Object obj) Generates a CBORObject from an arbitrary object.static CBORObjectCBORObject.FromObject(Object obj, CBORTypeMapper mapper) Generates a CBORObject from an arbitrary object.static CBORObjectCBORObject.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 CBORObjectCBORObject.FromObject(Object obj, PODOptions options) Generates a CBORObject from an arbitrary object.static CBORObjectCBORObject.FromObject(String strValue) Generates a CBOR object from a text string.static CBORObjectCBORObject.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 CBORObjectCBORObject.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 CBORObjectCBORObject.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.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.Inserts an object at the specified position in this CBOR array.static CBORObjectCBORObject.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 CBORObjectCBORObject.NewArray()Creates a new empty CBOR array.static CBORObjectCBORObject.NewMap()Creates a new empty CBOR map that stores its keys in an undefined order.static CBORObjectCBORObject.NewOrderedMap()Creates a new empty CBOR map that ensures that keys are stored in the order in which they are first inserted.static CBORObjectCBORDataUtilities.ParseJSONNumber(byte[] bytes) Parses a number from a byte sequence whose format follows the JSON specification.static CBORObjectCBORDataUtilities.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 CBORObjectCBORDataUtilities.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 CBORObjectCBORDataUtilities.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 CBORObjectCBORDataUtilities.ParseJSONNumber(char[] chars) Parses a number from a sequence ofchars whose format follows the JSON specification.static CBORObjectCBORDataUtilities.ParseJSONNumber(char[] chars, int offset, int count) Parses a number whose format follows the JSON specification (RFC 8259) from a portion of a sequence ofchars, and converts that number to a CBOR object.static CBORObjectCBORDataUtilities.ParseJSONNumber(char[] chars, int offset, int count, JSONOptions options) Parses a number from a sequence ofchars whose format follows the JSON specification (RFC 8259) and converts that number to a CBOR object.static CBORObjectCBORDataUtilities.ParseJSONNumber(char[] chars, JSONOptions options) Parses a number from a sequence ofchars whose format follows the JSON specification (RFC 8259) and converts that number to a CBOR object.static CBORObjectCBORDataUtilities.ParseJSONNumber(String str) Parses a number whose format follows the JSON specification.static CBORObjectCBORDataUtilities.ParseJSONNumber(String str, boolean integersOnly, boolean positiveOnly) Deprecated.Call the one-argument version of this method instead.static CBORObjectCBORDataUtilities.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 CBORObjectCBORDataUtilities.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 CBORObjectCBORDataUtilities.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 CBORObjectCBORDataUtilities.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 CBORObjectCBORObject.Read(InputStream stream) Reads an object in CBOR format from a data stream.static CBORObjectCBORObject.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 CBORObjectCBORObject.ReadJSON(InputStream stream) Generates a CBOR object from a data stream in JavaScript object Notation (JSON) format.static CBORObjectCBORObject.ReadJSON(InputStream stream, CBOREncodeOptions options) Deprecated.Instead, use.getReadJSON()(stream, new JSONOptions(\allowduplicatekeys = true\)) or .getReadJSON()(stream, new JSONOptions(\allowduplicatekeys = false\)), as appropriate.static CBORObjectCBORObject.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 CBORObjectCBORObject.Remainder(CBORObject first, CBORObject second) Deprecated.Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Remainder() method.Maps an object to a key in this CBOR map, or adds the value if the key doesn't exist.static CBORObjectCBORObject.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 CBORObjectModifier and TypeMethodDescriptionfinal Collection<Map.Entry<CBORObject, CBORObject>> CBORObject.getEntries()Gets a collection of the key/value pairs stored in this CBOR object, if it's a map.final Collection<Map.Entry<CBORObject, CBORObject>> CBORObject.getEntries()Gets a collection of the key/value pairs stored in this CBOR object, if it's a map.final Collection<CBORObject> CBORObject.getKeys()Gets a collection of the keys of this CBOR object.final 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 CBORObjectModifier and TypeMethodDescriptionCBORObject.Add(CBORObject obj) Adds a new object to the end of this array.static CBORObjectCBORObject.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.intCBORObject.compareTo(CBORObject other) Compares two CBOR objects.intCBORObject.CompareToIgnoreTags(CBORObject other) Compares this object and another CBOR object, ignoring the tags they have, if any.booleanCBORObject.ContainsKey(CBORObject key) Determines whether a value of the given key exists in this object.static CBORObjectCBORObject.Divide(CBORObject first, CBORObject second) Deprecated.Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Divide() method.booleanCBORObject.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 CBORNumberCBORNumber.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 CBORObjectCBORObject.FromObject(CBORObject value) Generates a CBOR object from a CBOR object.static CBORObjectCBORObject.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 CBORObjectCBORObject.Multiply(CBORObject first, CBORObject second) Deprecated.Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Multiply() method.static CBORObjectCBORObject.Remainder(CBORObject first, CBORObject second) Deprecated.Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Remainder() method.booleanCBORObject.Remove(CBORObject obj) If this object is an array, removes the first instance of the specified item from the array.voidCBORObject.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.voidCBORObject.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.voidCBORObject.set(String key, CBORObject value) Sets the value of a CBOR object in this map, using a string as the key.static CBORObjectCBORObject.Subtract(CBORObject first, CBORObject second) Deprecated.Instead, convert both CBOR objects to numbers (with .AsNumber()), and use the first number's.Subtract() method.booleanCBORDateConverter.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 voidCBORObject.Write(CBORObject value, OutputStream stream) Writes a CBOR object to a CBOR data stream.