Class ScannerFactory

    • Constructor Detail

      • ScannerFactory

        public ScannerFactory()
        Constructs a new instance.
        Since:
        1.0
    • Method Detail

      • create

        public FileScanner create​(ScannerPatternFormat patternFormat,
                                  Log logger)
        Creates a new scanner related with the pattern format. Returns an instance of the RegexFileScanner if patternFormat is equal to null.
        Parameters:
        patternFormat - the scanner pattern format.
        logger - the logger used to log included/excluded files (only in debug mode).
        Returns:
        the new scanner.
        Throws:
        IllegalArgumentException - if the logger is equal to null.
        Since:
        1.0