Class IOUtil

java.lang.Object
com.github.kokorin.jaffree.util.IOUtil

public final class IOUtil extends Object
Simple IO utils.

Kindly borrowed from commons-io.

  • Field Details

  • Method Details

    • copy

      public static long copy(InputStream input, OutputStream output, int bufferSize) throws IOException
      Copies everything form input to output.
      Parameters:
      input - input stream
      output - output stream
      bufferSize - buffer size to use
      Returns:
      bytes been copied
      Throws:
      IOException - Stream IO exception
    • copy

      public static long copy(InputStream input, OutputStream output, byte[] buffer) throws IOException
      Copies everything form input to output.
      Parameters:
      input - input stream
      output - output stream
      buffer - buffer to use
      Returns:
      bytes been copied
      Throws:
      IOException - Stream IO exception