public class InputStreamCopier
extends java.lang.Object
Copies the data from the given InputStream to the given OutputStream.
This is provided as a convience class for operations such as copying a
file across filesystems.
public InputStreamCopier(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
Create a new InputStream copier initialized with the provided Input
and Output Streams.
Method Detail
copy
public void copy()
throws java.io.IOException
Copy the data from the InputStream to the OutputStream.
This will continue copying until the InputStream's
read(byte[]) method returns -1
(the end of the stream is reached).