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