Package dev.getelements.elements.rt.kryo
Class KryoPayloadWriter
java.lang.Object
dev.getelements.elements.rt.kryo.KryoPayloadWriter
- All Implemented Interfaces:
PayloadWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Writes the suppliedObject
payload to a byte array.void
write
(Object payload, OutputStream stream) Writes the actual response object to theOutputStream
.
-
Constructor Details
-
KryoPayloadWriter
public KryoPayloadWriter()
-
-
Method Details
-
write
Description copied from interface:PayloadWriter
Writes the suppliedObject
payload to a byte array. The default implementation uses a temporaryByteArrayOutputStream
to accomplish this task.- Specified by:
write
in interfacePayloadWriter
- Parameters:
payload
- theObject
payload- Returns:
- the byte stream representing the
Object
- Throws:
IOException
-
write
Description copied from interface:PayloadWriter
Writes the actual response object to theOutputStream
.- Specified by:
write
in interfacePayloadWriter
- Parameters:
payload
- the the response objectstream
- the output stream- Throws:
IOException
-