Class IOUtils


  • public class IOUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] toByteArray​(java.io.InputStream input)
      输入InputSteam,返回byte[].
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toByteArray

        public static byte[] toByteArray​(java.io.InputStream input)
                                  throws java.io.IOException
        输入InputSteam,返回byte[]. 参考: 链接
        Parameters:
        input - 输入流
        Returns:
        byte 数组
        Throws:
        java.io.IOException - 异常