Class XStreamSerializer
Object
XStreamSerializer
Serializes an object using the XStream library.
- Author:
- Owen Feehan
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
serializeObjectToFile
(T object, Path path) Writes a file with a serialized representation of an object.
-
Method Details
-
serializeObjectToFile
Writes a file with a serialized representation of an object.- Type Parameters:
T
- object-type- Parameters:
object
- the object to serializepath
- path to write the object to- Throws:
IOException
- if the file cannot be written
-