Interface DataWriter

    • Method Detail

      • 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