Interface Deserializer<T>
- Type Parameters:
T
- the type of object to create from the deserialized representation.
- All Known Implementing Classes:
DictionaryDeserializer
,ObjectInputStreamDeserializer
,XStreamDeserializer
public interface Deserializer<T>
Creates an object from a serialized representation on the file-system.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(Path filePath, OperationContext context) Deserializes a representation of an object stored on the filesystem.
-
Method Details
-
deserialize
Deserializes a representation of an object stored on the filesystem.- 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.
-