public class StreamCopy
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description | 
|---|---|
| protected java.io.InputStream | sourceThe source stream. | 
| protected java.io.OutputStream | targetThe 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. |