public void scan ( PathSource fileSource , Collection < FractionDetector < PathSource > > detectors , Consumer < File > handleFileAsZip ) throws IOException { detectors . stream ( ) . filter ( d -> FileDetector . class . isAssignableFrom ( d . getClass ( ) ) ) . forEach ( d -> d . detect ( fileSource ) ) ; }
scans all xml files