public class CopyUtils extends Object
| Constructor and Description |
|---|
CopyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
copy(InputStream input,
OutputStream output)
Copy bytes from an
InputStream to an
OutputStream. |
static int |
copy(Reader input,
Writer output)
Copy chars from a <code>Reader to a <code>Writer
|
public static int copy(InputStream input, OutputStream output) throws IOException
InputStream to an
OutputStream.input - the InputStream to read fromoutput - the OutputStream to write toIOException - In case of an I/O problempublic static int copy(Reader input, Writer output) throws IOException
input - the <code>Reader to read fromoutput - the <code>Writer to write toIOException - In case of an I/O problemCopyright © 2013 DuraSpace. All Rights Reserved.