Class FSTPayloadWriter

java.lang.Object
dev.getelements.elements.rt.fst.FSTPayloadWriter
All Implemented Interfaces:
PayloadWriter

public class FSTPayloadWriter extends Object implements PayloadWriter
  • Constructor Details

    • FSTPayloadWriter

      public FSTPayloadWriter()
  • Method Details

    • write

      public void write(Object payload, OutputStream stream) throws IOException
      Description copied from interface: PayloadWriter
      Writes the actual response object to the OutputStream.
      Specified by:
      write in interface PayloadWriter
      Parameters:
      payload - the the response object
      stream - the output stream
      Throws:
      IOException
    • write

      public byte[] write(Object payload) throws IOException
      Description copied from interface: PayloadWriter
      Writes the supplied Object payload to a byte array. The default implementation uses a temporary ByteArrayOutputStream to accomplish this task.
      Specified by:
      write in interface PayloadWriter
      Parameters:
      payload - the Object 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)