Class XStreamDeserializer<T>
Object
XStreamDeserializer<T>
- Type Parameters:
T
- type of object to deserialize
- All Implemented Interfaces:
Deserializer<T>
Deserializes an object using the XStream library.
- Author:
- Owen Feehan
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(Path filePath, OperationContext context) Deserializes a representation of an object stored on the filesystem.
-
Constructor Details
-
XStreamDeserializer
public XStreamDeserializer()
-
-
Method Details
-
deserialize
Description copied from interface:Deserializer
Deserializes a representation of an object stored on the filesystem.- Specified by:
deserialize
in interfaceDeserializer<T>
- Parameters:
filePath
- the path on the file-system where the object is stored.context
- context for reading a stack from the file-system.- Returns:
- the deserialized object.
- Throws:
DeserializationFailedException
- if deserialization fails, including IO failures.
-