public class IOUtils extends Object
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_BUFFER_SIZE |
构造器和说明 |
---|
IOUtils() |
限定符和类型 | 方法和说明 |
---|---|
static long |
copy(InputStream input,
OutputStream output) |
static String |
getStackTrace(Throwable ex) |
static String |
read(InputStream in) |
static String |
read(Reader reader) |
static String |
read(Reader reader,
int length) |
static byte[] |
readByteArray(InputStream input) |
static byte[] |
readByteArrayFromResource(String resource) |
static String |
readFromResource(String resource) |
static String |
toString(Date date) |
static String |
toString(StackTraceElement[] stackTrace) |
public static final int DEFAULT_BUFFER_SIZE
public static String read(InputStream in)
public static String readFromResource(String resource) throws IOException
IOException
public static byte[] readByteArrayFromResource(String resource) throws IOException
IOException
public static byte[] readByteArray(InputStream input) throws IOException
IOException
public static long copy(InputStream input, OutputStream output) throws IOException
IOException
public static String toString(StackTraceElement[] stackTrace)
Copyright © 2012-2013 Alibaba Group. All Rights Reserved.