public class IOUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(Reader input,
File output) |
static void |
copy(Reader input,
Writer output) |
static void |
silentlyClose(Closeable toClose)
Closes given
Closeable, suppressing all exceptions. |
static byte[] |
toByteArray(InputStream input) |
static String |
toString(InputStream input) |
static String |
toString(InputStream input,
Charset encoding) |
static String |
toString(Reader input) |
public static String toString(InputStream input) throws IOException
IOExceptionpublic static String toString(InputStream input, Charset encoding) throws IOException
IOExceptionpublic static String toString(Reader input) throws IOException
IOExceptionpublic static void copy(Reader input, Writer output) throws IOException
IOExceptionpublic static void copy(Reader input, File output) throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream input) throws IOException
IOExceptionCopyright © 2019 Electronic Arts Inc. All rights reserved.