public class PipelineRunner<Collector> extends Object implements PipelineAssembly<Collector,PipelineRunner<Collector>>
| Constructor and Description |
|---|
PipelineRunner(TextSource source) |
| Modifier and Type | Method and Description |
|---|---|
<NewCollector> |
collector(NewCollector collector) |
PipelineRunner<Collector> |
language(LanguageFactory factory)
Set the function used to create the parser.
|
Collector |
run() |
PipelineRunner<Collector> |
with(Handler handler)
Add a handler to the pipeline.
|
PipelineRunner<Collector> |
with(HandlerFactory<Collector> handler)
Add a handler to the pipeline, to be constructed when processing begins.
|
public PipelineRunner(TextSource source)
public <NewCollector> PipelineRunner<NewCollector> collector(NewCollector collector)
public PipelineRunner<Collector> language(LanguageFactory factory)
PipelineAssemblybuilder.language(ICULanguageParser.forLocale(Locale.ENGLISH))
language in interface PipelineAssembly<Collector,PipelineRunner<Collector>>ICULanguage.forLocale(java.util.Locale)public PipelineRunner<Collector> with(Handler handler)
PipelineAssemblywith in interface PipelineAssembly<Collector,PipelineRunner<Collector>>public PipelineRunner<Collector> with(HandlerFactory<Collector> handler)
PipelineAssemblywith in interface PipelineAssembly<Collector,PipelineRunner<Collector>>public Collector run() throws IOException
IOExceptionCopyright © 2018. All rights reserved.