public interface SerializationProvider
Serializer.| Modifier and Type | Method and Description |
|---|---|
<T> StreamingDeserializer<T> |
getDeserializer(java.lang.Class<T> classToDeSerialize)
Provide a
StreamingDeserializer instance that can deserialize instances of T. |
<T> StreamingDeserializer<T> |
getDeserializer(TypeHolder<T> typeToDeserialize)
Provide a
StreamingDeserializer instance that can deserialize instances of T. |
<T> StreamingSerializer |
getSerializer(java.lang.Class<T> classToSerialize)
Provide a
StreamingSerializer instance that can serialize instances of T. |
<T> StreamingSerializer |
getSerializer(TypeHolder<T> typeToSerialize)
Provide a
StreamingSerializer instance that can serialize instances of T. |
default <T> void |
serialize(T toSerialize,
Buffer destination)
Serializes the passed object
toSerialize to the passed Buffer. |
<T> StreamingSerializer getSerializer(java.lang.Class<T> classToSerialize)
StreamingSerializer instance that can serialize instances of T.T - The data type to serialize.classToSerialize - The class for T, the object to be serialized.StreamingSerializer that can serialize instances of T.<T> StreamingSerializer getSerializer(TypeHolder<T> typeToSerialize)
StreamingSerializer instance that can serialize instances of T.T - The data type to serialize.typeToSerialize - TypeHolder holding the ParameterizedType to be serialized.StreamingSerializer that can serialize instances of T.default <T> void serialize(T toSerialize,
Buffer destination)
toSerialize to the passed Buffer.T - The data type to serialize.toSerialize - Object to serialize.destination - The Buffer to which the serialized representation of toSerialize is written.<T> StreamingDeserializer<T> getDeserializer(java.lang.Class<T> classToDeSerialize)
StreamingDeserializer instance that can deserialize instances of T.T - The data type to deserialize.classToDeSerialize - The class for T, the object to be deserialized.StreamingDeserializer that can deserialize instances of T.<T> StreamingDeserializer<T> getDeserializer(TypeHolder<T> typeToDeserialize)
StreamingDeserializer instance that can deserialize instances of T.T - The data type to deserialize.typeToDeserialize - TypeHolder holding the ParameterizedType to be deserialized.StreamingDeserializer that can deserialize instances of T.