Uses of Class
com.upokecenter.cbor.CBOREncodeOptions
-
Uses of CBOREncodeOptions in com.upokecenter.cbor
Fields in com.upokecenter.cbor declared as CBOREncodeOptionsModifier and TypeFieldDescriptionstatic final CBOREncodeOptionsCBOREncodeOptions.DefaultDefault options for CBOR objects.static final CBOREncodeOptionsCBOREncodeOptions.DefaultCtap2CanonicalDefault options for CBOR objects serialized using the CTAP2 canonicalization (used in Web Authentication, among other specifications).Methods in com.upokecenter.cbor with parameters of type CBOREncodeOptionsModifier and TypeMethodDescriptionstatic 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 <T> TCBORObject.DecodeObjectFromBytes(byte[] data, CBOREncodeOptions enc, Type t) Generates an object of an arbitrary type from an array of CBOR-encoded bytes, using the givenCBOREncodeOptionsobject to control the decoding process.static <T> TCBORObject.DecodeObjectFromBytes(byte[] data, CBOREncodeOptions enc, Type t, CBORTypeMapper mapper, PODOptions pod) Generates an object of an arbitrary type from an array of CBOR-encoded bytes, using the givenCBOREncodeOptionsobject to control the decoding process.static CBORObject[]CBORObject.DecodeSequenceFromBytes(byte[] data, CBOREncodeOptions options) Generates a sequence of CBOR objects from an array of CBOR-encoded bytes.byte[]CBORObject.EncodeToBytes(CBOREncodeOptions options) Writes the binary representation of this CBOR object and returns a byte array of that representation, using the specified options for encoding the object to CBOR format.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.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, CBOREncodeOptions options) Deprecated.Instead, use.getReadJSON()(stream, new JSONOptions(\allowduplicatekeys = true\)) or .getReadJSON()(stream, new JSONOptions(\allowduplicatekeys = false\)), as appropriate.static CBORObject[]CBORObject.ReadSequence(InputStream stream, CBOREncodeOptions options) Reads a sequence of objects in CBOR format from a data stream.static voidCBORObject.Write(Object objValue, OutputStream output, CBOREncodeOptions options) Writes an arbitrary object to a CBOR data stream, using the specified options for controlling how the object is encoded to CBOR data format.static voidCBORObject.Write(String str, OutputStream stream, CBOREncodeOptions options) Writes a text string in CBOR format to a data stream, using the given options to control the encoding process.voidCBORObject.WriteTo(OutputStream stream, CBOREncodeOptions options) Writes this CBOR object to a data stream, using the specified options for encoding the data to CBOR format.