private FileReader createFileReader ( LogFilePath logFilePath ) throws Exception { CompressionCodec codec = null ; if ( mConfig . getCompressionCodec ( ) != null && ! mConfig . getCompressionCodec ( ) . isEmpty ( ) ) { codec = CompressionUtil . createCompressionCodec ( mConfig . getCompressionCodec ( ) ) ; } FileReader fileReader = ReflectionUtil . createFileReader ( mConfig . getFileReaderWriterFactory ( ) , logFilePath , codec , mConfig ) ; return fileReader ; }
Helper to create a file reader writer from config