Interface StateSnapshot.Reader<T extends StateSnapshot>
- Enclosing interface:
StateSnapshot
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionThis method is called to de-serialize snapshot data that was previously serialized viaStateSnapshot.Writer.writeSnapshot(StateSnapshot, OutputStream)
.
-
Method Details
-
readSnapshot
This method is called to de-serialize snapshot data that was previously serialized viaStateSnapshot.Writer.writeSnapshot(StateSnapshot, OutputStream)
. The stream is guaranteed to contain at least one byte.- Parameters:
in
- theInputStream
containing the serialized data- Returns:
- the converted snapshot State
- Throws:
IOException
- if an I/O error occurs
-