public class IOUtil extends Object
| Constructor and Description |
|---|
IOUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(InputStream in)
Closes an
InputStream. |
static void |
closeQuietly(Reader reader)
Closes a
Reader. |
static void |
copy(InputStream in,
OutputStream out)
Copies the contents of an InputStream to an OutputStream.
|
public static void copy(InputStream in, OutputStream out) throws IOException
in - the input streamout - the output streamIOException - if an I/O error occurspublic static void closeQuietly(InputStream in)
InputStream. It ignores any exceptions happening while closing the
stream.in - the input streamCopyright © 2003–2023. All rights reserved.