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 ElementHandler
next - the next pipeline in line. (or null if none )
public Pipeline open(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
AbstractPipeline
open in interface Pipeline
open in class AbstractPipeline
context - the WorkerContext
t - the Tag
po - a processObject to put Writables in
PipelineException - can be thrown to indicate that something went wrong.
public Pipeline> content(WorkerContext ctx, Tag currentTag, String text, ProcessObject po) throws PipelineException
AbstractPipeline
content in interface Pipeline
content in class AbstractPipeline
ctx - the WorkerContext
currentTag - the Tag
text - the content
po - a processObject to put Writables in
PipelineException - can be thrown to indicate that something went wrong.
public Pipeline close(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
AbstractPipeline
close in interface Pipeline
close in class AbstractPipeline
context - the WorkerContext
t - the Tag
po - a processObject to put Writables in
PipelineException - can be thrown to indicate that something went wrong.
Copyright © 1998–2021. All rights reserved.