Class WffBinaryMessageOutputStreamer

java.lang.Object
com.webfirmframework.wffweb.streamer.WffBinaryMessageOutputStreamer

public class WffBinaryMessageOutputStreamer extends Object
The default binary message version is 1.
Since:
1.1.2
  • Constructor Details

    • WffBinaryMessageOutputStreamer

      public WffBinaryMessageOutputStreamer(OutputStream os)
      Parameters:
      os - the output stream object to which the wff binary message bytes will be written
      Since:
      1.0.0
    • WffBinaryMessageOutputStreamer

      public WffBinaryMessageOutputStreamer(OutputStream os, WffBinaryMessageVersion version)
      Parameters:
      os - the output stream object to which the wff binary message bytes will be written
      Since:
      1.1.2
  • Method Details

    • write

      public int write(NameValue nameValue) throws IOException
      Parameters:
      nameValue - the nameValue to be written to the output stream
      Returns:
      the number of bytes written to the output stream
      Throws:
      IOException
      Since:
      1.1.2
    • getVersion

      public WffBinaryMessageVersion getVersion()
    • setChunkSize

      public void setChunkSize(int chunkSize)
      Parameters:
      chunkSize - the wff message bytes will be written maximum with the given chuck size.
      Since:
      1.1.2
    • getChunkSize

      public int getChunkSize()
      Returns:
      Since:
      1.1.2