-
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.
|
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.
|
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.
|