类 IOUtils


  • public class IOUtils
    extends 
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static void  file, [] lines)
      append lines.
      static  reader)
      read string.
      static []  file)
      read lines.
      static []  is)
      read lines.
      static long  is,  os)
      write.
      static long  is,  os, int bufferSize)
      write.
      static long  reader,  writer)
      write.
      static long  reader,  writer, int bufferSize)
      write.
      static long  writer,  string)
      write string.
      static void  file, [] lines)
      write lines.
      static void  os, [] lines)
      write lines.
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 方法详细资料

      • write

        public static long write​( is,
                                  os)
                          throws 
        write.
        参数:
        is - InputStream instance.
        os - OutputStream instance.
        返回:
        count.
        抛出:
      • write

        public static long write​( is,
                                  os,
                                 int bufferSize)
                          throws 
        write.
        参数:
        is - InputStream instance.
        os - OutputStream instance.
        bufferSize - buffer size.
        返回:
        count.
        抛出:
      • read

        public static  read​( reader)
                           throws 
        read string.
        参数:
        reader - Reader instance.
        返回:
        String.
        抛出:
      • write

        public static long write​( writer,
                                  string)
                          throws 
        write string.
        参数:
        writer - Writer instance.
        string - String.
        抛出:
      • write

        public static long write​( reader,
                                  writer)
                          throws 
        write.
        参数:
        reader - Reader.
        writer - Writer.
        返回:
        count.
        抛出:
      • write

        public static long write​( reader,
                                  writer,
                                 int bufferSize)
                          throws 
        write.
        参数:
        reader - Reader.
        writer - Writer.
        bufferSize - buffer size.
        返回:
        count.
        抛出:
      • readLines

        public static [] readLines​( file)
                                  throws 
        read lines.
        参数:
        file - file.
        返回:
        lines.
        抛出:
      • readLines

        public static [] readLines​( is)
                                  throws 
        read lines.
        参数:
        is - input stream.
        返回:
        lines.
        抛出:
      • writeLines

        public static void writeLines​( os,
                                      [] lines)
                               throws 
        write lines.
        参数:
        os - output stream.
        lines - lines.
        抛出:
      • writeLines

        public static void writeLines​( file,
                                      [] lines)
                               throws 
        write lines.
        参数:
        file - file.
        lines - lines.
        抛出:
      • appendLines

        public static void appendLines​( file,
                                       [] lines)
                                throws 
        append lines.
        参数:
        file - file.
        lines - lines.
        抛出: