| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(byte[] src,
int copyLength,
OutputStream os) |
static void |
copy(File src,
File dest) |
static int |
copy(InputStream is,
OutputStream os) |
static int |
copy(Reader r,
Writer w) |
static byte[] |
readAllBytes(File src) |
static byte[] |
readAndDelete(File src) |
static byte[] |
toByteArray(InputStream is) |
static String |
toString(Reader r) |
public static int copy(InputStream is, OutputStream os) throws IOException
IOExceptionpublic static void copy(byte[] src,
int copyLength,
OutputStream os)
throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream is) throws IOException
IOExceptionpublic static int copy(Reader r, Writer w) throws IOException
IOExceptionpublic static void copy(File src, File dest) throws IOException
IOExceptionpublic static byte[] readAllBytes(File src) throws IOException
IOExceptionpublic static byte[] readAndDelete(File src) throws IOException
IOExceptionpublic static String toString(Reader r) throws IOException
IOExceptionCopyright © 2017. All rights reserved.