Pipeline
@Experimental("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 | Description |
---|---|
AutoDocPipeline(FileMaker fm,
java.lang.String tag,
java.lang.String opentag,
Rectangle pagesize) |
Constructor
|
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. |
content, getContextKey, getLocalContext, getNext, init, setNext
public AutoDocPipeline(FileMaker fm, java.lang.String tag, java.lang.String opentag, Rectangle pagesize)
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 documentspublic Pipeline<?> open(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
AbstractPipeline
open
in interface Pipeline
open
in class AbstractPipeline
context
- the WorkerContextt
- the Tagpo
- a processObject to put Writable
s inPipelineException
- 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 WorkerContextt
- the Tagpo
- a processObject to put Writable
s inPipelineException
- can be thrown to indicate that something went wrong.Copyright © 1998–2018. All rights reserved.