Interface DataWriter


public interface DataWriter
Writes data to an OutputStream. Used to enable lambda callbacks in for example Trace.setData(String, DataWriter).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Write data to given OutputStream.
  • Method Details

    • writeTo

      void writeTo(OutputStream stream) throws IOException
      Write data to given OutputStream.

      Note: the received output stream should not be closed by the user. It should also only be used within the scope of the function, other usage may be guarded against or otherwise result in undefined behaviour.

      Parameters:
      stream - the stream to write data to
      Throws:
      IOException - when an I/O error occurs