public class NoOpSerializer extends Object implements ValueSerializer
| Constructor and Description |
|---|
NoOpSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(com.google.protobuf.ByteString data)
Deserialize an object from a byte array.
|
String |
getID()
Return the id of this value format.
|
com.google.protobuf.ByteString |
serialize(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(Object object) throws IOException
ValueSerializerserialize in interface ValueSerializerIOExceptionpublic Object deserialize(com.google.protobuf.ByteString data) throws IOException, ClassNotFoundException
ValueSerializerdeserialize in interface ValueSerializerIOExceptionClassNotFoundExceptionpublic String getID()
ValueSerializergetID in interface ValueSerializerpublic boolean supportsPrimitives()
ValueSerializersupportsPrimitives in interface ValueSerializer