public class ElementHandlerPipeline extends AbstractPipeline
PdfWriterPipeline but this one just passes everything on to an ElementHandler.
Allowing you to get all Writables at the end of the pipeline. (or in between)| Constructor and Description |
|---|
ElementHandlerPipeline(ElementHandler handler,
Pipeline next)
Does not use a context.
|
| Modifier and Type | Method and Description |
|---|---|
Pipeline |
close(WorkerContext context,
Tag t,
ProcessObject po)
Just calls getNext.
Override this to get notified on encountered closing tags. |
Pipeline<?> |
content(WorkerContext ctx,
Tag currentTag,
String text,
ProcessObject po)
Just calls getNext.
Override this to get notified on encountered content. |
Pipeline |
open(WorkerContext context,
Tag t,
ProcessObject po)
Just calls getNext.
Override this to get notified on encountered opening tags. |
getContextKey, getLocalContext, getNext, init, setNextpublic ElementHandlerPipeline(ElementHandler handler, Pipeline next)
handler - the ElementHandlernext - the next pipeline in line. (or null if none )public Pipeline open(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
AbstractPipelineopen in interface Pipelineopen in class AbstractPipelinecontext - the WorkerContextt - the Tagpo - a processObject to put Writables inPipelineException - can be thrown to indicate that something went wrong.public Pipeline<?> content(WorkerContext ctx, Tag currentTag, String text, ProcessObject po) throws PipelineException
AbstractPipelinecontent in interface Pipelinecontent in class AbstractPipelinectx - the WorkerContextcurrentTag - the Tagtext - the contentpo - a processObject to put Writables inPipelineException - can be thrown to indicate that something went wrong.public Pipeline close(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
AbstractPipelineclose in interface Pipelineclose in class AbstractPipelinecontext - the WorkerContextt - the Tagpo - a processObject to put Writables inPipelineException - can be thrown to indicate that something went wrong.Copyright © 2020. All rights reserved.