public class LegacyTranscoder extends Object implements Transcoder
Transcoder.EncodedValue
Modifier and Type | Method and Description |
---|---|
static LegacyTranscoder |
create(JsonSerializer jsonSerializer) |
<T> T |
decode(Class<T> target,
byte[] input,
int flags)
Decodes the wire representation into the entity based on the data format.
|
<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.
|
public static LegacyTranscoder create(JsonSerializer jsonSerializer)
public Transcoder.EncodedValue encode(Object input)
Transcoder
encode
in interface Transcoder
input
- the input object to encode.public <T> T decode(Class<T> target, byte[] input, int flags)
Transcoder
decode
in interface Transcoder
target
- the target type to decode.input
- the wire representation to decode.flags
- the flags on the wirepublic <T> T decode(TypeRef<T> target, byte[] input, int flags)
Transcoder
decode
in interface Transcoder
target
- the target type to decode.input
- the wire representation to decode.flags
- the flags on the wireCopyright © 2021 Couchbase, Inc.. All rights reserved.