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 TypeMethodDescriptionvoid
writeTo
(OutputStream stream) Write data to givenOutputStream
.
-
Method Details
-
writeTo
Write data to givenOutputStream
.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
-