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 suppliedObjectpayload to a byte array.voidwrite(Object payload, OutputStream stream) Writes the actual response object to theOutputStream.
-
Constructor Details
-
KryoPayloadWriter
public KryoPayloadWriter()
-
-
Method Details
-
write
Description copied from interface:PayloadWriterWrites the suppliedObjectpayload to a byte array. The default implementation uses a temporaryByteArrayOutputStreamto accomplish this task.- Specified by:
writein interfacePayloadWriter- Parameters:
payload- theObjectpayload- Returns:
- the byte stream representing the
Object - Throws:
IOException
-
write
Description copied from interface:PayloadWriterWrites the actual response object to theOutputStream.- Specified by:
writein interfacePayloadWriter- Parameters:
payload- the the response objectstream- the output stream- Throws:
IOException
-