Package org.dellroad.stuff.io
Interface WriteCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface used to write output to an
OutputStream
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(OutputStream output) Write the output to the given output stream.
-
Method Details
-
writeTo
Write the output to the given output stream.This method should not
close()
the givenoutput
.- Parameters:
output
- output stream- Throws:
IOException
- if an I/O error occurs
-