Interface StreamingMessageWriter

All Known Implementing Classes:
AnnotatedJsonMessageWriter, AnnotatedXmlMessageWriter

public interface StreamingMessageWriter
An interface to write the model instance as the message output stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(Object t, OutputStream outputStream)
    Write the model to message output stream.
    void
    write(Object t, OutputStream outputStream, org.springframework.http.MediaType contentType)
    Write the model to message output stream.
  • Method Details

    • write

      void write(Object t, OutputStream outputStream) throws IOException
      Write the model to message output stream.
      Parameters:
      t - the model instance
      outputStream - the message output stream
      Throws:
      IOException - when there are errors in writing the object
    • write

      void write(Object t, OutputStream outputStream, org.springframework.http.MediaType contentType) throws IOException
      Write the model to message output stream.
      Parameters:
      t - the model instance
      contentType - the content type of the output message
      outputStream - the message output stream
      Throws:
      IOException - when there are errors in writing the object