public class IOUtils
extends java.lang.Object
构造器和说明 |
---|
IOUtils() |
限定符和类型 | 方法和说明 |
---|---|
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.IOException
public static byte[] readStreamAsBytesArray(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static byte[] readStreamAsBytesArray(java.io.InputStream in, int readLength) throws java.io.IOException
java.io.IOException
public static void safeClose(java.io.InputStream inputStream)
public static void safeClose(java.io.OutputStream outputStream)