public class IOUtils
extends java.lang.Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readStreamAsBytesArray(java.io.InputStream in) |
static byte[] |
readStreamAsBytesArray(java.io.InputStream in,
int readLength) |
static java.lang.String |
readStreamAsString(java.io.InputStream in,
java.lang.String charset) |
static void |
safeClose(java.io.InputStream inputStream) |
static void |
safeClose(java.io.OutputStream outputStream) |
public static java.lang.String readStreamAsString(java.io.InputStream in,
java.lang.String charset)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] readStreamAsBytesArray(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] readStreamAsBytesArray(java.io.InputStream in,
int readLength)
throws java.io.IOException
java.io.IOExceptionpublic static void safeClose(java.io.InputStream inputStream)
public static void safeClose(java.io.OutputStream outputStream)