Package dev.getelements.elements.rt.fst
Class FSTPayloadWriter
java.lang.Object
dev.getelements.elements.rt.fst.FSTPayloadWriter
- All Implemented Interfaces:
PayloadWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.nustaq.serialization.FSTConfiguration
void
setFstConfiguration
(org.nustaq.serialization.FSTConfiguration fstConfiguration) byte[]
Writes the suppliedObject
payload to a byte array.void
write
(Object payload, OutputStream stream) Writes the actual response object to theOutputStream
.
-
Constructor Details
-
FSTPayloadWriter
public FSTPayloadWriter()
-
-
Method Details
-
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
-
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
-
getFstConfiguration
public org.nustaq.serialization.FSTConfiguration getFstConfiguration() -
setFstConfiguration
@Inject public void setFstConfiguration(org.nustaq.serialization.FSTConfiguration fstConfiguration)
-