public interface Serializer<T>
byte[] serialize(T obj) throws IOException
obj - The object to serialize.IOException - Thrown, if the serialization fails.T deserialize(byte[] serialized) throws IOException
serialized - The serialized dataIOException - Thrown, if the deserialization fails.Copyright © 2024 The Apache Software Foundation. All rights reserved.