public class FetcherManager extends ConfigBase
This forbids multiple fetchers supporting the same name.
Constructor and Description |
---|
FetcherManager(List<Fetcher> fetchers) |
Modifier and Type | Method and Description |
---|---|
Fetcher |
getFetcher()
Convenience method that returns a fetcher if only one fetcher
is specified in the tika-config file.
|
Fetcher |
getFetcher(String fetcherName) |
Set<String> |
getSupported() |
static FetcherManager |
load(Path p) |
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
public FetcherManager(List<Fetcher> fetchers) throws TikaConfigException
TikaConfigException
public static FetcherManager load(Path p) throws IOException, TikaConfigException
IOException
TikaConfigException
public Fetcher getFetcher(String fetcherName) throws IOException, TikaException
IOException
TikaException
public Fetcher getFetcher()
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.