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 Writables 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 voidconsume(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 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. (ornullif none )
-
-
Method Details
-
open
Description copied from class:AbstractPipelineJust calls getNext.
Override this to get notified on encountered opening tags.- Specified by:
openin interfacePipeline- Overrides:
openin classAbstractPipeline- Parameters:
context- the WorkerContextt- the Tagpo- a processObject to putWritables 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:AbstractPipelineJust calls getNext.
Override this to get notified on encountered content.- Specified by:
contentin interfacePipeline- Overrides:
contentin classAbstractPipeline- Parameters:
ctx- the WorkerContextcurrentTag- the Tagtext- the contentpo- a processObject to putWritables in- Returns:
- the next pipeline in line
- Throws:
PipelineException- can be thrown to indicate that something went wrong.
-
close
Description copied from class:AbstractPipelineJust calls getNext.
Override this to get notified on encountered closing tags.- Specified by:
closein interfacePipeline- Overrides:
closein classAbstractPipeline- Parameters:
context- the WorkerContextt- the Tagpo- a processObject to putWritables in- Returns:
- the next pipeline in line
- Throws:
PipelineException- can be thrown to indicate that something went wrong.
-