Package dev.getelements.elements.rt.kryo
Class KryoPayloadReader
java.lang.Object
dev.getelements.elements.rt.kryo.KryoPayloadReader
- All Implemented Interfaces:
PayloadReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
Reads the object to another type.<T> T
read
(Class<T> payloadType, InputStream stream) Reads the actual response object to theInputStream
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.rt.PayloadReader
read
-
Constructor Details
-
KryoPayloadReader
public KryoPayloadReader()
-
-
Method Details
-
convert
Description copied from interface:PayloadReader
Reads the object to another type.- Specified by:
convert
in interfacePayloadReader
- Type Parameters:
T
- the type- Parameters:
to
- the type to readfrom
- the type from which to read- Returns:
- an instance of the requested type, read from the supplied object.
-
read
Description copied from interface:PayloadReader
Reads the actual response object to theInputStream
.- Specified by:
read
in interfacePayloadReader
- Parameters:
payloadType
- the the response objectstream
- the output stream- Throws:
IOException
-