Package com.nt.udc.util
Class InputStreamCopier
java.lang.Object
com.nt.udc.util.InputStreamCopier
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.
-
Constructor Summary
ConstructorsConstructorDescriptionInputStreamCopier
(InputStream inputStream, OutputStream outputStream) Create a new InputStream copier initialized with the provided Input and Output Streams. -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy()
Copy the data from the InputStream to the OutputStream.
-
Constructor Details
-
InputStreamCopier
Create a new InputStream copier initialized with the provided Input and Output Streams.
-
-
Method Details
-
copy
Copy the data from the InputStream to the OutputStream. This will continue copying until the InputStream'sread(byte[])
method returns -1 (the end of the stream is reached).- Throws:
IOException
-