Pipeline
public class ElementHandlerPipeline extends AbstractPipeline
PdfWriterPipeline
but this one just passes everything on to an ElementHandler
.
Allowing you to get all Writable
s at the end of the pipeline. (or in between)Constructor | Description |
---|---|
ElementHandlerPipeline(ElementHandler handler,
Pipeline next) |
Does not use a context.
|
Modifier and Type | Method | 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,
java.lang.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, setNext
public 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
AbstractPipeline
open
in interface Pipeline
open
in class AbstractPipeline
context
- the WorkerContextt
- the Tagpo
- a processObject to put Writable
s inPipelineException
- can be thrown to indicate that something went wrong.public Pipeline<?> content(WorkerContext ctx, Tag currentTag, java.lang.String text, ProcessObject po) throws PipelineException
AbstractPipeline
content
in interface Pipeline
content
in class AbstractPipeline
ctx
- the WorkerContextcurrentTag
- the Tagtext
- the contentpo
- a processObject to put Writable
s inPipelineException
- 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 WorkerContextt
- the Tagpo
- a processObject to put Writable
s inPipelineException
- can be thrown to indicate that something went wrong.Copyright © 1998–2018. All rights reserved.