|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.tool.xml.pipeline.AbstractPipeline<HtmlPipelineContext>
com.itextpdf.tool.xml.pipeline.html.HtmlPipeline
public class HtmlPipeline
The HtmlPipeline transforms received tags and content to PDF Elements.
To configure this pipeline a HtmlPipelineContext
.
Constructor Summary | |
---|---|
HtmlPipeline(HtmlPipelineContext hpc,
Pipeline<?> next)
|
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 t,
String text,
ProcessObject po)
Just calls getNext. Override this to get notified on encountered content. |
Pipeline<?> |
init(WorkerContext context)
The init method allows implementation to initialize the pipeline. |
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, setNext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlPipeline(HtmlPipelineContext hpc, Pipeline<?> next)
hpc
- the initial HtmlPipelineContext
next
- the next pipe in rowMethod Detail |
---|
public Pipeline<?> init(WorkerContext context) throws PipelineException
Pipeline
WorkerContext.put(String, CustomContext)
.
init
in interface Pipeline<HtmlPipelineContext>
init
in class AbstractPipeline<HtmlPipelineContext>
context
- the WorkerContext
PipelineException
- can be thrown to indicate that something went wrong.public Pipeline<?> open(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
AbstractPipeline
open
in interface Pipeline<HtmlPipelineContext>
open
in class AbstractPipeline<HtmlPipelineContext>
context
- the WorkerContextt
- the Tagpo
- a processObject to put Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.public Pipeline<?> content(WorkerContext context, Tag t, String text, ProcessObject po) throws PipelineException
AbstractPipeline
content
in interface Pipeline<HtmlPipelineContext>
content
in class AbstractPipeline<HtmlPipelineContext>
context
- the WorkerContextt
- the Tagtext
- the contentpo
- a processObject to put Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.public Pipeline<?> close(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
AbstractPipeline
close
in interface Pipeline<HtmlPipelineContext>
close
in class AbstractPipeline<HtmlPipelineContext>
context
- the WorkerContextt
- the Tagpo
- a processObject to put Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |