Package org.apache.tika.pipes.fetcher
Class FetcherManager
java.lang.Object
org.apache.tika.config.ConfigBase
org.apache.tika.pipes.fetcher.FetcherManager
Utility class to hold multiple fetchers.
This forbids multiple fetchers supporting the same name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConvenience method that returns a fetcher if only one fetcher is specified in the tika-config file.getFetcher
(String fetcherName) static FetcherManager
Methods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
Constructor Details
-
FetcherManager
- Throws:
TikaConfigException
-
-
Method Details
-
load
- Throws:
IOException
TikaConfigException
-
getFetcher
- Throws:
IOException
TikaException
-
getSupported
-
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:
-