Package org.apache.tika.pipes.fetcher
Class FetcherManager
- java.lang.Object
- 
- org.apache.tika.config.ConfigBase
- 
- org.apache.tika.pipes.fetcher.FetcherManager
 
 
- 
 public class FetcherManager extends ConfigBase Utility class to hold multiple fetchers.This forbids multiple fetchers supporting the same name. 
- 
- 
Constructor SummaryConstructors Constructor Description FetcherManager(List<Fetcher> fetchers)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FetchergetFetcher()Convenience method that returns a fetcher if only one fetcher is specified in the tika-config file.FetchergetFetcher(String fetcherName)Set<String>getSupported()static FetcherManagerload(Path p)- 
Methods inherited from class org.apache.tika.config.ConfigBasebuildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
 
- 
 
- 
- 
- 
Constructor Detail- 
FetcherManagerpublic FetcherManager(List<Fetcher> fetchers) throws TikaConfigException - Throws:
- TikaConfigException
 
 
- 
 - 
Method Detail- 
loadpublic static FetcherManager load(Path p) throws IOException, TikaConfigException - Throws:
- IOException
- TikaConfigException
 
 - 
getFetcherpublic Fetcher getFetcher(String fetcherName) throws IOException, TikaException - Throws:
- IOException
- TikaException
 
 - 
getFetcherpublic Fetcher getFetcher() Convenience method that returns a fetcher if only one fetcher is specified in the tika-config file. If 0 or > 1 fetchers are specified, this throws an IllegalArgumentException.- Returns:
 
 
- 
 
-