Class ObjectInputStreamDeserializer<T>
Object
ObjectInputStreamDeserializer<T>
- Type Parameters:
T
- type of object to deserialize.
- All Implemented Interfaces:
Deserializer<T>
Deserializes using Java's Native serialization framework.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(Path filePath, OperationContext context) Deserializes a representation of an object stored on the filesystem.
-
Constructor Details
-
ObjectInputStreamDeserializer
public ObjectInputStreamDeserializer()
-
-
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.
-