public class CrawlerConfigLoader extends Object
Constructor and Description |
---|
CrawlerConfigLoader(Class<? extends ICrawlerConfig> crawlerConfigClass) |
Modifier and Type | Method and Description |
---|---|
void |
loadCrawlerConfig(ICrawlerConfig config,
XMLConfiguration node)
Loads a crawler configuration, which can be either the default
crawler or real crawler configuration instances
(keeping defaults).
|
ICrawlerConfig[] |
loadCrawlerConfigs(File configFile) |
ICrawlerConfig[] |
loadCrawlerConfigs(File configFile,
File configVariables) |
ICrawlerConfig[] |
loadCrawlerConfigs(HierarchicalConfiguration xml) |
public CrawlerConfigLoader(Class<? extends ICrawlerConfig> crawlerConfigClass)
public ICrawlerConfig[] loadCrawlerConfigs(File configFile)
public ICrawlerConfig[] loadCrawlerConfigs(File configFile, File configVariables)
public ICrawlerConfig[] loadCrawlerConfigs(HierarchicalConfiguration xml)
public void loadCrawlerConfig(ICrawlerConfig config, XMLConfiguration node) throws IOException
config
- crawler configuration to populate/overwritenode
- the node representing the crawler configuration.IOException
- problem loading crawler configurationCopyright © 2014–2021 Norconex Inc.. All rights reserved.