@Experimental(value="Untested for a while, forgot about it\'s existance - thus, not yet documented") public class AutoDocPipeline extends AbstractPipeline
PdfWriterPipeline
to be the last pipe of the line. If a HtmlPipeline
is available it's context will also be reset.
Constructor and Description |
---|
AutoDocPipeline(FileMaker fm, String tag, String opentag, Rectangle pagesize)
Constructor
|
Modifier and Type | Method and 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. |
content, getContextKey, getLocalContext, getNext, init, setNext
public AutoDocPipeline(FileMaker fm, String tag, String opentag, Rectangle pagesize)
fm
- a FileMaker to provide a stream for every new document
tag
- the tag on with to create a new document and close it
opentag
- the tag on which to open the document ( Document.open()
pagesize
- the pagesize for the documents
public Pipeline> open(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
AbstractPipeline
open
in interface Pipeline
open
in class AbstractPipeline
context
- the WorkerContext
t
- the Tag
po
- 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
close
in class AbstractPipeline
context
- the WorkerContext
t
- the Tag
po
- a processObject to put Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.
Copyright © 1998–2019. All rights reserved.