Package com.couchbase.client.java.codec
Class JsonTranscoder
java.lang.Object
com.couchbase.client.java.codec.JsonTranscoder
- All Implemented Interfaces:
Transcoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.java.codec.Transcoder
Transcoder.EncodedValue -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonTranscodercreate(JsonSerializer serializer) <T> TDecodes the wire representation into the entity based on the data format.<T> TDecodes the wire representation into the entity based on the data format.Encodes the given input into the wire representation based on the data format.
-
Method Details
-
create
-
encode
Description copied from interface:TranscoderEncodes the given input into the wire representation based on the data format.- Specified by:
encodein interfaceTranscoder- Parameters:
input- the input object to encode.- Returns:
- the encoded wire representation of the payload.
-
decode
Description copied from interface:TranscoderDecodes the wire representation into the entity based on the data format.- Specified by:
decodein interfaceTranscoder- Type Parameters:
T- the generic type used for the decoding target.- Parameters:
target- the target type to decode.input- the wire representation to decode.flags- the flags on the wire- Returns:
- the decoded entity.
-
decode
Description copied from interface:TranscoderDecodes the wire representation into the entity based on the data format.- Specified by:
decodein interfaceTranscoder- Type Parameters:
T- the generic type used for the decoding target.- Parameters:
target- the target type to decode.input- the wire representation to decode.flags- the flags on the wire- Returns:
- the decoded entity.
-