Package com.couchbase.client.java.codec
Class RawBinaryTranscoder
java.lang.Object
com.couchbase.client.java.codec.RawBinaryTranscoder
- All Implemented Interfaces:
Transcoder
public class RawBinaryTranscoder 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 RawBinaryTranscoderINSTANCE -
Method Summary
Modifier and Type Method Description <T> Tdecode(Class<T> target, byte[] input, int flags)Decodes the wire representation into the entity based on the data format.Transcoder.EncodedValueencode(Object input)Encodes the given input into the wire representation based on the data format.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.couchbase.client.java.codec.Transcoder
decode
-
Field Details
-
INSTANCE
-
-
Method Details
-
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- Parameters:
target- the target type to decode.input- the wire representation to decode.flags- the flags on the wire- Returns:
- the decoded entity.
-