Uses of Class
com.upokecenter.cbor.CBOREncodeOptions

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

    Fields in com.upokecenter.cbor declared as CBOREncodeOptions 
    Modifier and Type Field Description
    static CBOREncodeOptions CBOREncodeOptions.Default
    Default options for CBOR objects.
    static CBOREncodeOptions CBOREncodeOptions.DefaultCtap2Canonical
    Default 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 CBOREncodeOptions 
    Modifier and Type Method Description
    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 <T> T CBORObject.DecodeObjectFromBytes​(byte[] data, CBOREncodeOptions enc, java.lang.reflect.Type t)
    Generates an object of an arbitrary type from an array of CBOR-encoded bytes, using the given CBOREncodeOptions object to control the decoding process.
    static <T> T CBORObject.DecodeObjectFromBytes​(byte[] data, CBOREncodeOptions enc, java.lang.reflect.Type t, CBORTypeMapper mapper, PODOptions pod)
    Generates an object of an arbitrary type from an array of CBOR-encoded bytes, using the given CBOREncodeOptions object 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 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.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, CBOREncodeOptions options)
    Deprecated.
    Instead, use.getReadJSON()(stream, new JSONOptions(\allowduplicatekeys = true\)) or .getReadJSON()(stream, new JSONOptions(\allowduplicatekeys = false\)), as appropriate.
    static CBORObject[] CBORObject.ReadSequence​(java.io.InputStream stream, CBOREncodeOptions options)
    Reads a sequence of objects in CBOR format from a data stream.
    static void CBORObject.Write​(java.lang.Object objValue, java.io.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 void CBORObject.Write​(java.lang.String str, java.io.OutputStream stream, CBOREncodeOptions options)
    Writes a text string in CBOR format to a data stream, using the given options to control the encoding process.
    void CBORObject.WriteTo​(java.io.OutputStream stream, CBOREncodeOptions options)
    Writes this CBOR object to a data stream, using the specified options for encoding the data to CBOR format.