public interface Transcoder
Modifier and Type | Interface and Description |
---|---|
static class |
Transcoder.EncodedValue
Represents the tuple of encoded value and flags to be used on the wire.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
decode(Class<T> target,
byte[] input,
int flags)
Decodes the wire representation into the entity based on the data format.
|
default <T> T |
decode(TypeRef<T> target,
byte[] input,
int flags)
Decodes the wire representation into the entity based on the data format.
|
Transcoder.EncodedValue |
encode(Object input)
Encodes the given input into the wire representation based on the data format.
|
Transcoder.EncodedValue encode(Object input)
input
- the input object to encode.<T> T decode(Class<T> target, byte[] input, int flags)
target
- the target type to decode.input
- the wire representation to decode.flags
- the flags on the wiredefault <T> T decode(TypeRef<T> target, byte[] input, int flags)
target
- the target type to decode.input
- the wire representation to decode.flags
- the flags on the wireCopyright © 2020 Couchbase, Inc.. All rights reserved.