public class IOUtils
extends java.lang.Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyTo(java.io.InputStream in,
java.io.OutputStream out)
Copies all remaining bytes from
in to out. |
static java.lang.String |
toString(java.io.InputStream in) |
public static java.lang.String toString(java.io.InputStream in)
public static void copyTo(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in to out. The out will be flushed.
Note that method does not make any buffering, so caller must ensure that streams are buffered if needed.
in - The input source.out - The output destination.java.io.IOException - When any I/O error occurred.