public final class IOUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
copy(InputStream input,
OutputStream output)
Copies the content of a InputStream into an OutputStream.
|
static long |
copy(InputStream input,
OutputStream output,
int buffersize)
Copies the content of a InputStream into an OutputStream
|
public static long copy(InputStream input, OutputStream output) throws IOException
input - the InputStream to copyoutput - the target StreamIOException - if an error occurspublic static long copy(InputStream input, OutputStream output, int buffersize) throws IOException
input - the InputStream to copyoutput - the target Streambuffersize - the buffer size to useIOException - if an error occursCopyright © 2012 Apache Software Foundation. All Rights Reserved.