com.itextpdf.tool.xml.svg
Class SvgPipeline
java.lang.Object
com.itextpdf.tool.xml.pipeline.AbstractPipeline<SvgPipelineContext>
com.itextpdf.tool.xml.svg.SvgPipeline
- All Implemented Interfaces:
- Pipeline<SvgPipelineContext>
public class SvgPipeline
- extends AbstractPipeline<SvgPipelineContext>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SvgPipeline
public SvgPipeline(SvgPipelineContext hpc,
Pipeline<?> next)
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<SvgPipelineContext>- Overrides:
open in class AbstractPipeline<SvgPipelineContext>
- Parameters:
context - the WorkerContextt - the Tagpo - 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 t,
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<SvgPipelineContext>- Overrides:
content in class AbstractPipeline<SvgPipelineContext>
- Parameters:
context - the WorkerContextt - the Tagtext - the contentpo - a processObject to put Writables in
- Returns:
- the next pipeline in line
- Throws:
PipelineException - can be thrown to indicate that something went wrong.
init
public Pipeline<?> init(WorkerContext context)
throws PipelineException
- Description copied from interface:
Pipeline
- The init method allows implementation to initialize the pipeline. e.g.
Initialize their CustomContext here and add it to the WorkerContext
through
WorkerContext.put(String, CustomContext).
- Specified by:
init in interface Pipeline<SvgPipelineContext>- Overrides:
init in class AbstractPipeline<SvgPipelineContext>
- Parameters:
context - the WorkerContext
- 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<SvgPipelineContext>- Overrides:
close in class AbstractPipeline<SvgPipelineContext>
- Parameters:
context - the WorkerContextt - the Tagpo - a processObject to put Writables in
- Returns:
- the next pipeline in line
- Throws:
PipelineException - can be thrown to indicate that something went wrong.
Copyright © 2013. All Rights Reserved.