public CommandDeserializer
Interface responsible for deserialization of interface Command
.
It is the caller responsibility to provide the valid interface CommandDeserializer
for deserialization the interface Command
from the
stream.
Modifier and Type | Method and Description |
---|---|
Command |
deserialize(java.io.InputStream stream)
Deserialize
interface Command object from the stream. |
Command deserialize(java.io.InputStream stream)
Deserialize interface Command
object from the stream.
Method can throw IOException when deserializing the object. However when invalid interface CommandSerializer
is
provided for deserializing the object from the stream, the content of the stream can be left in undefined state.
stream
- InputStream the object has to be deserialized from.interface Command
object.interface Command
,
interface CommandSerializer