private void dealWithFile ( File file ) { // Browse thru Map SelectiveFileScannerObserver specificFileScanner = selectiveFileScannerMap . get ( file . getName ( ) ) ; if ( specificFileScanner != null ) { logger . debug ( "Launching fileScanner={} for file={}" , specificFileScanner . getClass ( ) , file . getAbsoluteFile ( ) ) ; specificFileScanner . scanFile ( file ) ; } // Browse thru List for ( FileScannerObserver fileScanner : fileScanners ) { logger . debug ( "Launching fileScanner={} for file={}" , fileScanner . getClass ( ) , file . getAbsoluteFile ( ) ) ; fileScanner . scanFile ( file ) ; } }
deal with the file that need to be parsed specific