public class StreamCopy
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
source
The source stream.
|
protected java.io.OutputStream |
target
The target stream.
|
Constructor and Description |
---|
StreamCopy(java.io.InputStream source,
java.io.OutputStream target)
Create a stream copy object.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Copy data from source to target.
|