Package com.couchbase.client.java.codec
Class RawJsonTranscoder
- java.lang.Object
-
- com.couchbase.client.java.codec.RawJsonTranscoder
-
- All Implemented Interfaces:
Transcoder
public class RawJsonTranscoder extends Object implements Transcoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.couchbase.client.java.codec.Transcoder
Transcoder.EncodedValue
-
-
Field Summary
Fields Modifier and Type Field Description static RawJsonTranscoder
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
decode(Class<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.
-
-
-
Field Detail
-
INSTANCE
public static RawJsonTranscoder INSTANCE
-
-
Method Detail
-
encode
public Transcoder.EncodedValue encode(Object input)
Description copied from interface:Transcoder
Encodes the given input into the wire representation based on the data format.- Specified by:
encode
in interfaceTranscoder
- Parameters:
input
- the input object to encode.- Returns:
- the encoded wire representation of the payload.
-
decode
public <T> T decode(Class<T> target, byte[] input, int flags)
Description copied from interface:Transcoder
Decodes the wire representation into the entity based on the data format.- Specified by:
decode
in interfaceTranscoder
- Parameters:
target
- the target type to decode.input
- the wire representation to decode.- Returns:
- the decoded entity.
-
-