Package se.thinkcode.stream
Class StreamConsumer
java.lang.Object
se.thinkcode.stream.StreamConsumer
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionStreamConsumer(InputStream inputStream, OutputStream outputStream) Create a new stream consumer. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Copies data from the input stream to the output stream.void
-
Constructor Details
-
StreamConsumer
Create a new stream consumer.- Parameters:
inputStream- input stream to read data fromoutputStream- output stream to write data to.
-
-
Method Details