Class IOUtil

java.lang.Object
com.acanx.utils.incubator.IOUtil

public class IOUtil extends Object
IO输入输出工具类
Since:
0.0.1.10
  • Method Details

    • copy

      public static int copy(Reader input, Writer output) throws IOException
      拷贝
      Parameters:
      input - Reader
      output - Writer
      Returns:
      count
      Throws:
      IOException - IOException
    • copy

      public static void copy(InputStream input, Writer writer, Charset inputCharset) throws IOException
      拷贝
      Parameters:
      input - InputStream
      writer - Writer
      inputCharset - 字符集
      Throws:
      IOException - IOException
    • copyLarge

      public static long copyLarge(Reader input, Writer output) throws IOException
      大拷贝
      Parameters:
      input - Reader
      output - Writer
      Returns:
      长度
      Throws:
      IOException - IOException
    • copyLarge

      public static long copyLarge(Reader input, Writer output, char[] buffer) throws IOException
      大拷贝
      Parameters:
      input - Reader
      output - Writer
      buffer - 字符数组buffer
      Returns:
      长度
      Throws:
      IOException - IOException