| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(Closeable closeable) |
static void |
copy(byte[] src,
int copyLength,
OutputStream os) |
static int |
copy(InputStream is,
OutputStream os) |
static int |
copy(Reader r,
Writer w) |
static InputStream |
nonClosing(InputStream in) |
static OutputStream |
nonClosing(OutputStream out) |
static Reader |
nonClosing(Reader r) |
static Writer |
nonClosing(Writer w) |
static byte[] |
toByteArray(InputStream is) |
static String |
toString(InputStream is,
String charsetName) |
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 String toString(Reader r) throws IOException
IOExceptionpublic static String toString(InputStream is, String charsetName) throws IOException
IOExceptionpublic static void closeQuietly(Closeable closeable)
public static InputStream nonClosing(InputStream in)
public static OutputStream nonClosing(OutputStream out)
Copyright © 2017. All rights reserved.