Class AutoDocPipeline
- java.lang.Object
-
- com.itextpdf.tool.xml.pipeline.AbstractPipeline
-
- com.itextpdf.tool.xml.pipeline.html.AutoDocPipeline
-
- All Implemented Interfaces:
Pipeline
@Experimental("Untested for a while, forgot about it\'s existance - thus, not yet documented") public class AutoDocPipeline extends AbstractPipeline
This pipeline can automagically create documents. Allowing you to parse continuously, without needing to renew the configuration. This class does expectPdfWriterPipeline
to be the last pipe of the line. If aHtmlPipeline
is available it's context will also be reset.
-
-
Constructor Summary
Constructors Constructor Description AutoDocPipeline(FileMaker fm, java.lang.String tag, java.lang.String opentag, Rectangle pagesize)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pipeline<?>
close(WorkerContext context, Tag t, ProcessObject po)
Just calls getNext.
Override this to get notified on encountered closing tags.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
content, getContextKey, getLocalContext, getNext, init, setNext
-
-
-
-
Constructor Detail
-
AutoDocPipeline
public AutoDocPipeline(FileMaker fm, java.lang.String tag, java.lang.String opentag, Rectangle pagesize)
Constructor- Parameters:
fm
- a FileMaker to provide a stream for every new documenttag
- the tag on with to create a new document and close itopentag
- the tag on which to open the document (Document.open()
pagesize
- the pagesize for the documents
-
-
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 interfacePipeline
- Overrides:
open
in classAbstractPipeline
- Parameters:
context
- the WorkerContextt
- the Tagpo
- a processObject to putWritable
s 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 interfacePipeline
- Overrides:
close
in classAbstractPipeline
- Parameters:
context
- the WorkerContextt
- the Tagpo
- a processObject to putWritable
s in- Returns:
- the next pipeline in line
- Throws:
PipelineException
- can be thrown to indicate that something went wrong.
-
-