Interface Serializer<T>
- Type Parameters:
T- type to serialize
public interface Serializer<T>
Provides a mechanism by which a value can be serialized to a stream of bytes
-
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(T value, OutputStream output) Serializes the given value to theOutputStream
-
Method Details
-
serialize
Serializes the given value to theOutputStream- Parameters:
value- valueoutput- stream- Throws:
SerializationException- If unable to serialize the given valueIOException- ex
-