类 FileReaderUtils


  • public class FileReaderUtils
    extends java.lang.Object
    作者:
    BiJi'an
    Description:
    Date:
    2022/1/1
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static <T> T process​(java.io.File file, java.lang.String encoding, DefaultLineProcessor<T> processor)  
      static void process​(java.io.File file, java.lang.String encoding, LineProcessor processor)  
      static void process​(java.io.InputStream input, java.lang.String encoding, LineProcessor processor)  
      static byte[] readFileToByteArray​(java.io.File file)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • FileReaderUtils

        public FileReaderUtils()
    • 方法详细资料

      • process

        public static void process​(java.io.File file,
                                   java.lang.String encoding,
                                   LineProcessor processor)
        参数:
        file - a file
        encoding - the encoding of the file
        processor - a processor to process the file
        Description:
        Date:
        2022-01-01 01:48
        Title:
        process
      • process

        public static void process​(java.io.InputStream input,
                                   java.lang.String encoding,
                                   LineProcessor processor)
        参数:
        input - the input stream
        encoding - the encoding
        processor - the processor
        Description:
        Date:
        2022-01-01 02:00
        Title:
        process
      • process

        public static <T> T process​(java.io.File file,
                                    java.lang.String encoding,
                                    DefaultLineProcessor<T> processor)
        参数:
        file - a file
        encoding - the encoding of the file
        processor - a processor to process the file
        Description:
        Date:
        2022-01-01 01:48
        Title:
        process
      • readFileToByteArray

        public static byte[] readFileToByteArray​(java.io.File file)
        参数:
        file - file
        返回:
        byte[]
        Description:
        Date:
        2023-04-22 00:32
        Title:
        readFileToByteArray