com.itextpdf.tool.xml.svg
Class PdfTemplatePipeline

java.lang.Object
  extended by com.itextpdf.tool.xml.pipeline.AbstractPipeline<MapContext>
      extended by com.itextpdf.tool.xml.svg.PdfTemplatePipeline
All Implemented Interfaces:
Pipeline<MapContext>

public class PdfTemplatePipeline
extends AbstractPipeline<MapContext>

This pipeline writes to a Document.

Author:
redlab_b

Constructor Summary
PdfTemplatePipeline(PdfContentByte cb)
           
 
Method Summary
 Pipeline<?> close(WorkerContext context, Tag t, ProcessObject po)
          Just calls getNext.
Override this to get notified on encountered closing tags.
 Pipeline<?> content(WorkerContext context, Tag currentTag, String text, ProcessObject po)
          Just calls getNext.
Override this to get notified on encountered content.
 PdfTemplate getTemplate()
           
 Pipeline<?> 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfTemplatePipeline

public PdfTemplatePipeline(PdfContentByte cb)
Parameters:
doc - the document
writer - the writer
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<MapContext>
Overrides:
open in class AbstractPipeline<MapContext>
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 context,
                           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<MapContext>
Overrides:
content in class AbstractPipeline<MapContext>
Parameters:
context - 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<MapContext>
Overrides:
close in class AbstractPipeline<MapContext>
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.

getTemplate

public PdfTemplate getTemplate()


Copyright © 2012. All Rights Reserved.