Uses of Class
com.upokecenter.cbor.CBORTypeMapper
-
Uses of CBORTypeMapper in com.upokecenter.cbor
Methods in com.upokecenter.cbor that return CBORTypeMapperModifier and TypeMethodDescription<T> CBORTypeMapperCBORTypeMapper.AddConverter(Type type, ICBORConverter<T> converter) Registers an object that converts objects of a given type to CBOR objects (called a CBOR converter).CBORTypeMapper.AddTypeName(String name) Adds the fully qualified name of a Java or.NET type for use in type matching.CBORTypeMapper.AddTypePrefix(String prefix) Adds a prefix of a Java or.NET type for use in type matching.Methods in com.upokecenter.cbor with parameters of type CBORTypeMapperModifier and TypeMethodDescriptionstatic <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 <T> TCBORObject.DecodeObjectFromBytes(byte[] data, Type t, CBORTypeMapper mapper, PODOptions pod) Generates an object of an arbitrary type from an array of CBOR-encoded bytes.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.<T> TCBORObject.ToObject(Type t, CBORTypeMapper mapper) Converts this CBOR object to an object of an arbitrary type.<T> TCBORObject.ToObject(Type t, CBORTypeMapper mapper, PODOptions options) Converts this CBOR object to an object of an arbitrary type.