Interface ModelSerializer<T>
- All Known Implementing Classes:
JacksonModelSerializer
public interface ModelSerializer<T>
Serializing interface for models
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(byte[] bytes) Given bytes serialized viaserialize(Object)
return the modelbyte[]
Given a model return the serialized bytes
-
Field Details
-
raw
A pass through serializer
-
-
Method Details
-
serialize
Given a model return the serialized bytes- Parameters:
model
- model- Returns:
- bytes
-
deserialize
Given bytes serialized viaserialize(Object)
return the model- Parameters:
bytes
- serialized bytes- Returns:
- model
- Throws:
RuntimeException
- ifbytes
is invalid or there was an error deserializing
-