com.alibaba.druid.util
Class IOUtils
java.lang.Object
com.alibaba.druid.util.IOUtils
public class IOUtils
- extends Object
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
IOUtils
public IOUtils()
read
public static String read(InputStream in)
readFromResource
public static String readFromResource(String resource)
throws IOException
- Throws:
IOException
readByteArrayFromResource
public static byte[] readByteArrayFromResource(String resource)
throws IOException
- Throws:
IOException
readByteArray
public static byte[] readByteArray(InputStream input)
throws IOException
- Throws:
IOException
copy
public static long copy(InputStream input,
OutputStream output)
throws IOException
- Throws:
IOException
read
public static String read(Reader reader)
read
public static String read(Reader reader,
int length)
toString
public static String toString(Date date)
getStackTrace
public static String getStackTrace(Throwable ex)
toString
public static String toString(StackTraceElement[] stackTrace)
Copyright © 2012 Alibaba Group. All Rights Reserved.