public class FilterEventsWriterStep extends BasePipelineStep
IPipelineStep
interface for a step that takes filter events and creates an output document
using a provided IFilterWriter implementation. Each event and its
resource are passed on to the next step.| Constructor and Description |
|---|
FilterEventsWriterStep()
Creates a new FilterEventsWriterStep object.
|
FilterEventsWriterStep(IFilterWriter filterWriter)
Creates a new FilterEventsWriterStep object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Executes any cleanup code for this step.
|
String |
getDescription()
Gets a short localizable description of what this step does.
|
String |
getName()
Gets the localizable name of this step.
|
Event |
handleEvent(Event event)
Processes each event sent though the pipeline.
|
void |
setDocumentRoots(String newDocumentsRoot)
Sets the root of the documents to process.
|
void |
setExecutionContext(ExecutionContext context) |
void |
setFilterConfigurationId(String filterConfigId) |
void |
setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper) |
void |
setFilterWriter(IFilterWriter filterWriter)
Sets the filter writer for this EventsWriterStep object.
|
void |
setOutputEncoding(String outputEncoding) |
void |
setOutputStream(OutputStream outputStream) |
void |
setOutputURI(URI outputURI) |
void |
setTargetLocale(LocaleId targetLocale) |
cancel, getHelpLocation, getParameters, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, handleTextUnit, isDone, isLastOutputStep, setLastOutputStep, setParameterspublic FilterEventsWriterStep()
public FilterEventsWriterStep(IFilterWriter filterWriter)
filterWriter - the writer used to convert Events to a documentpublic void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
public void setFilterConfigurationId(String filterConfigId)
public void setOutputURI(URI outputURI)
public void setOutputStream(OutputStream outputStream)
public void setTargetLocale(LocaleId targetLocale)
public void setOutputEncoding(String outputEncoding)
public void setExecutionContext(ExecutionContext context)
public void setFilterWriter(IFilterWriter filterWriter)
filterWriter - the filter writer to use.public void setDocumentRoots(String newDocumentsRoot)
documentsRoot - documents root.public String getName()
IPipelineSteppublic String getDescription()
IPipelineSteppublic Event handleEvent(Event event)
IPipelineStephandleEvent in interface IPipelineStephandleEvent in class BasePipelineStepevent - the event to process.public void destroy()
IPipelineStepdestroy in interface IPipelineStepdestroy in class BasePipelineStepCopyright © 2021. All rights reserved.