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> TReads the object to another type.<T> Tread(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, waitMethods inherited from interface dev.getelements.elements.rt.PayloadReader
read
-
Constructor Details
-
KryoPayloadReader
public KryoPayloadReader()
-
-
Method Details
-
convert
Description copied from interface:PayloadReaderReads the object to another type.- Specified by:
convertin 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:PayloadReaderReads the actual response object to theInputStream.- Specified by:
readin interfacePayloadReader- Parameters:
payloadType- the the response objectstream- the output stream- Throws:
IOException
-