Interface DataWriter
-
public interface DataWriter
Writes data to anOutputStream
. Used to enable lambda callbacks in for exampleTrace.setData(String, DataWriter)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeTo(OutputStream stream)
Write data to givenOutputStream
.
-
-
-
Method Detail
-
writeTo
void writeTo(OutputStream stream) throws IOException
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
-
-