public interface Serializer<T>
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class c) |
T |
deserialize(DataInputStream stream) |
void |
serialize(T object,
DataOutputStream stream) |
boolean accepts(Class c)
void serialize(T object, DataOutputStream stream) throws IOException
IOException
T deserialize(DataInputStream stream) throws IOException
IOException