public static TagImporter create(final Optional<PathConfig> config, final InputFile file, final ImportEventListener listener) { final LineConsumer lineConsumer = createLineConsumer(config, file, listener); return new TagImporter(lineConsumer, file); }
@Override public Importer createImporter(final InputFile path, final ImportEventListener listener) { if (!supportsFile(path)) { throw new ImporterException("File '" + path + "' cannot be imported because it does not match any supported file patterns: " + DEFAULT_FILE_REGEX + " and " + getPathConfigs().collect(toList())); } final Optional<PathConfig> config = findConfig(path); return TagImporter.create(config, path, listener); }
@Override public Importer createImporter(final InputFile path, final ImportEventListener listener) { if (!supportsFile(path)) { throw new ImporterException("File '" + path + "' cannot be imported because it does not match any supported file patterns: " + DEFAULT_FILE_REGEX + " and " + getPathConfigs().collect(toList())); } final Optional<PathConfig> config = findConfig(path); return TagImporter.create(config, path, listener); }
public static TagImporter create(final Optional<PathConfig> config, final InputFile file, final ImportEventListener listener) { final LineConsumer lineConsumer = createLineConsumer(config, file, listener); return new TagImporter(lineConsumer, file); }