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
ValueSerializer
serialize
in interface ValueSerializer
java.io.IOException
public java.lang.Object deserialize(com.google.protobuf.ByteString data) throws java.io.IOException, java.lang.ClassNotFoundException
ValueSerializer
deserialize
in interface ValueSerializer
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.String getID()
ValueSerializer
getID
in interface ValueSerializer
public boolean supportsPrimitives()
ValueSerializer
supportsPrimitives
in interface ValueSerializer