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 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.
|
Pipeline> |
content(WorkerContext ctx, Tag currentTag, String text, ProcessObject po)
Just calls getNext.
|
Pipeline |
open(WorkerContext context, Tag t, ProcessObject po)
Just calls getNext.
|
getContextKey, getLocalContext, getNext, init, setNext
public 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 Writable
s 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 Writable
s 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 Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.
Copyright © 2016. All rights reserved.