类 IoUtils

java.lang.Object
com.sh.wf.excel.util.IoUtils

public class IoUtils extends Object
IO Utils
  • 字段详细资料

  • 方法详细资料

    • toByteArray

      public static byte[] toByteArray(InputStream input) throws IOException
      Gets the contents of an InputStream as a byte[].
      参数:
      input - InputStream
      返回:
      byte[]
      抛出:
      IOException - IOException
    • toByteArray

      public static byte[] toByteArray(InputStream input, int size) throws IOException
      Gets the contents of an InputStream as a byte[].
      参数:
      input - InputStream
      size - int
      返回:
      byte[]
      抛出:
      IOException - IOException
    • copy

      public static int copy(InputStream input, OutputStream output) throws IOException
      Copies bytes
      参数:
      input - InputStream
      output - OutputStream
      返回:
      int
      抛出:
      IOException - IOException