com.aliyun.mns.common.utils
类 IOUtils

java.lang.Object
  继承者 com.aliyun.mns.common.utils.IOUtils

public class IOUtils
extends Object


构造方法摘要
IOUtils()
           
 
方法摘要
static byte[] readStreamAsBytesArray(InputStream in)
           
static String readStreamAsString(InputStream in, String charset)
           
static void safeClose(InputStream inputStream)
           
static void safeClose(OutputStream outputStream)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

IOUtils

public IOUtils()
方法详细信息

readStreamAsString

public static String readStreamAsString(InputStream in,
                                        String charset)
                                 throws IOException
抛出:
IOException

readStreamAsBytesArray

public static byte[] readStreamAsBytesArray(InputStream in)
                                     throws IOException
抛出:
IOException

safeClose

public static void safeClose(InputStream inputStream)

safeClose

public static void safeClose(OutputStream outputStream)


Copyright © 2016. All Rights Reserved.