Package org.apache.tika.pipes.emitter
Class EmitterManager
- java.lang.Object
-
- org.apache.tika.config.ConfigBase
-
- org.apache.tika.pipes.emitter.EmitterManager
-
public class EmitterManager extends ConfigBase
Utility class that will apply the appropriate fetcher to the fetcherString based on the prefix.This does not allow multiple fetchers supporting the same prefix.
-
-
Constructor Summary
Constructors Constructor Description EmitterManager(List<Emitter> emitters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Emitter
getEmitter()
Convenience method that returns an emitter if only one emitter is specified in the tika-config file.Emitter
getEmitter(String emitterName)
Set<String>
getSupported()
static EmitterManager
load(Path tikaConfigPath)
-
Methods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
-
-
-
Method Detail
-
load
public static EmitterManager load(Path tikaConfigPath) throws IOException, TikaConfigException
- Throws:
IOException
TikaConfigException
-
getEmitter
public Emitter getEmitter()
Convenience method that returns an emitter if only one emitter is specified in the tika-config file. If 0 or > 1 emitters are specified, this throws an IllegalArgumentException.- Returns:
-
-