Class ElementHandlerPipeline
java.lang.Object
com.itextpdf.tool.xml.pipeline.AbstractPipeline
com.itextpdf.tool.xml.pipeline.end.ElementHandlerPipeline
- All Implemented Interfaces:
Pipeline
As the
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)-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElementHandlerPipeline
(ElementHandler handler, Pipeline next) Does not use a context. -
Method Summary
Modifier and TypeMethodDescriptionclose
(WorkerContext context, Tag t, ProcessObject po) Just calls getNext.
Override this to get notified on encountered closing tags.private void
consume
(ProcessObject po) Pipeline
<?> content
(WorkerContext ctx, Tag currentTag, String text, ProcessObject po) Just calls getNext.
Override this to get notified on encountered content.open
(WorkerContext context, Tag t, ProcessObject po) Just calls getNext.
Override this to get notified on encountered opening tags.Methods inherited from class com.itextpdf.tool.xml.pipeline.AbstractPipeline
getContextKey, getLocalContext, getNext, init, setNext
-
Field Details
-
handler
-
-
Constructor Details
-
ElementHandlerPipeline
Does not use a context.- Parameters:
handler
- the ElementHandlernext
- the next pipeline in line. (ornull
if none )
-
-
Method Details
-
open
Description copied from class:AbstractPipeline
Just calls getNext.
Override this to get notified on encountered opening tags.- Specified by:
open
in interfacePipeline
- Overrides:
open
in classAbstractPipeline
- Parameters:
context
- the WorkerContextt
- the Tagpo
- a processObject to putWritable
s in- Returns:
- the next pipeline in line
- Throws:
PipelineException
- can be thrown to indicate that something went wrong.
-
consume
- Parameters:
po
-
-
content
public Pipeline<?> content(WorkerContext ctx, Tag currentTag, String text, ProcessObject po) throws PipelineException Description copied from class:AbstractPipeline
Just calls getNext.
Override this to get notified on encountered content.- Specified by:
content
in interfacePipeline
- Overrides:
content
in classAbstractPipeline
- Parameters:
ctx
- the WorkerContextcurrentTag
- the Tagtext
- the contentpo
- a processObject to putWritable
s in- Returns:
- the next pipeline in line
- Throws:
PipelineException
- can be thrown to indicate that something went wrong.
-
close
Description copied from class:AbstractPipeline
Just calls getNext.
Override this to get notified on encountered closing tags.- Specified by:
close
in interfacePipeline
- Overrides:
close
in classAbstractPipeline
- Parameters:
context
- the WorkerContextt
- the Tagpo
- a processObject to putWritable
s in- Returns:
- the next pipeline in line
- Throws:
PipelineException
- can be thrown to indicate that something went wrong.
-