public class NoOpSerializer extends java.lang.Object implements ValueSerializer
| Constructor and Description |
|---|
NoOpSerializer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(com.google.protobuf.ByteString data)
Deserialize an object from a byte array.
|
java.lang.String |
getID()
Return the id of this value format.
|
com.google.protobuf.ByteString |
serialize(java.lang.Object object)
Serialize an object into a byte array.
|
boolean |
supportsPrimitives()
True if this serializer wants to serialize all values, including primitives like
numbers and strings that can be sent as one of the options in EncodedValue.
|
public com.google.protobuf.ByteString serialize(java.lang.Object object)
throws java.io.IOException
ValueSerializerserialize in interface ValueSerializerjava.io.IOExceptionpublic java.lang.Object deserialize(com.google.protobuf.ByteString data)
throws java.io.IOException,
java.lang.ClassNotFoundException
ValueSerializerdeserialize in interface ValueSerializerjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic java.lang.String getID()
ValueSerializergetID in interface ValueSerializerpublic boolean supportsPrimitives()
ValueSerializersupportsPrimitives in interface ValueSerializer