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.FSTConfigurationvoidsetFstConfiguration(org.nustaq.serialization.FSTConfiguration fstConfiguration) byte[]Writes the suppliedObjectpayload to a byte array.voidwrite(Object payload, OutputStream stream) Writes the actual response object to theOutputStream.
-
Constructor Details
-
FSTPayloadWriter
public FSTPayloadWriter()
-
-
Method Details
-
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
-
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
-
getFstConfiguration
public org.nustaq.serialization.FSTConfiguration getFstConfiguration() -
setFstConfiguration
@Inject public void setFstConfiguration(org.nustaq.serialization.FSTConfiguration fstConfiguration)
-