com.itextpdf.tool.xml.pipeline.end
Class ElementHandlerPipeline

java.lang.Object
  extended by com.itextpdf.tool.xml.pipeline.AbstractPipeline
      extended by com.itextpdf.tool.xml.pipeline.end.ElementHandlerPipeline
All Implemented Interfaces:
Pipeline

public class ElementHandlerPipeline
extends AbstractPipeline

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)

Author:
redlab_b

Constructor Summary
ElementHandlerPipeline(ElementHandler handler, Pipeline next)
          Does not use a context.
 
Method Summary
 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.
 
Methods inherited from class com.itextpdf.tool.xml.pipeline.AbstractPipeline
getContextKey, getLocalContext, getNext, init, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementHandlerPipeline

public ElementHandlerPipeline(ElementHandler handler,
                              Pipeline next)
Does not use a context.

Parameters:
handler - the ElementHandler
next - the next pipeline in line. (or null if none )
Method Detail

open

public Pipeline open(WorkerContext context,
                     Tag t,
                     ProcessObject po)
              throws PipelineException
Description copied from class: AbstractPipeline
Just calls getNext.
Override this to get notified on encountered opening tags.

Specified by:
open in interface Pipeline
Overrides:
open in class AbstractPipeline
Parameters:
context - the WorkerContext
t - the Tag
po - a processObject to put Writables in
Returns:
the next pipeline in line
Throws:
PipelineException - can be thrown to indicate that something went wrong.

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 interface Pipeline
Overrides:
content in class AbstractPipeline
Parameters:
ctx - the WorkerContext
currentTag - the Tag
text - the content
po - a processObject to put Writables in
Returns:
the next pipeline in line
Throws:
PipelineException - can be thrown to indicate that something went wrong.

close

public Pipeline close(WorkerContext context,
                      Tag t,
                      ProcessObject po)
               throws PipelineException
Description copied from class: AbstractPipeline
Just calls getNext.
Override this to get notified on encountered closing tags.

Specified by:
close in interface Pipeline
Overrides:
close in class AbstractPipeline
Parameters:
context - the WorkerContext
t - the Tag
po - a processObject to put Writables in
Returns:
the next pipeline in line
Throws:
PipelineException - can be thrown to indicate that something went wrong.


Copyright © 2015. All Rights Reserved.