Interface MessageWriter


public interface MessageWriter
Responsible for writing messages to an output stream.
Since:
1.59.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the message length in bytes, or -1 if the length is unknown.
    void
    Write the message to the OutputStream.
  • Method Details

    • writeMessage

      void writeMessage(OutputStream output) throws IOException
      Write the message to the OutputStream.
      Throws:
      IOException
    • getContentLength

      int getContentLength()
      Return the message length in bytes, or -1 if the length is unknown.