com.aliyun.oss.common.utils

## 类 IOUtils

- java.lang.Object
- - com.aliyun.oss.common.utils.IOUtils

-     public class IOUtils
      extends Object

- - ### 构造器概要

    构造器
    构造器和说明
    `IOUtils()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `static boolean` | `checkFile(File file)`
    `static Long` | `getCRCValue(InputStream inputStream)`
    `static InputStream` | `newRepeatableInputStream(BoundedInputStream original)`
    `static InputStream` | `newRepeatableInputStream(InputStream original)`
    `static byte[]` | `readStreamAsByteArray(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`

    - #### readStreamAsByteArray

          public static byte[] readStreamAsByteArray(InputStream in)
                                              throws IOException

      抛出:
        `IOException`

    - #### safeClose

          public static void safeClose(InputStream inputStream)

    - #### safeClose

          public static void safeClose(OutputStream outputStream)

    - #### checkFile

          public static boolean checkFile(File file)

    - #### newRepeatableInputStream

          public static InputStream newRepeatableInputStream(InputStream original)
                                                      throws IOException

      抛出:
        `IOException`

    - #### newRepeatableInputStream

          public static InputStream newRepeatableInputStream(BoundedInputStream original)
                                                      throws IOException

      抛出:
        `IOException`

    - #### getCRCValue

          public static Long getCRCValue(InputStream inputStream)

Copyright © 2020. All Rights Reserved.