public final class ByteStreams extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
copy(InputStream from,
OutputStream to)
Copies all bytes from the input stream to the output stream.
|
public static long copy(InputStream from, OutputStream to) throws IOException
from - the input stream to read fromto - the output stream to write toIOException - if an I/O error occurs