Interface BandanaSerializer
-
- All Known Implementing Classes:
XStreamBandanaSerializer
public interface BandanaSerializer
Interface providing object serialization and deserialization for Bandana records.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
deserialize(Reader reader)
Deserialize an object.void
serialize(Object obj, Writer writer)
Serialize an object.
-
-
-
Method Detail
-
serialize
void serialize(Object obj, Writer writer) throws IOException
Serialize an object.- Parameters:
obj
- the object to serializewriter
- a writer to serialize the object to- Throws:
IOException
-
deserialize
Object deserialize(Reader reader) throws IOException
Deserialize an object.- Parameters:
reader
- a reader providing the serialized object- Returns:
- the deserialized object
- Throws:
IOException
-
-