public class HtmlPipeline extends AbstractPipeline<HtmlPipelineContext>
HtmlPipelineContext
.
Constructor and Description |
---|
HtmlPipeline(HtmlPipelineContext hpc, Pipeline> next) |
Modifier and Type | Method and Description |
---|---|
protected void |
addStackKeeper(Tag t, HtmlPipelineContext hcc, TagProcessor tp) |
Pipeline> |
close(WorkerContext context, Tag t, ProcessObject po)
Just calls getNext.
|
Pipeline> |
content(WorkerContext context, Tag t, String text, ProcessObject po)
Just calls getNext.
|
Pipeline> |
init(WorkerContext context)
The init method allows implementation to initialize the pipeline. e.g.
|
Pipeline> |
open(WorkerContext context, Tag t, ProcessObject po)
Just calls getNext.
|
getContextKey, getLocalContext, getNext, setNext
public HtmlPipeline(HtmlPipelineContext hpc, Pipeline> next)
hpc
- the initial HtmlPipelineContext
next
- the next pipe in row
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 WorkerContext
t
- the Tag
po
- 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 WorkerContext
t
- the Tag
text
- the content
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<HtmlPipelineContext>
close
in class AbstractPipeline<HtmlPipelineContext>
context
- the WorkerContext
t
- the Tag
po
- a processObject to put Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.
protected void addStackKeeper(Tag t, HtmlPipelineContext hcc, TagProcessor tp)
Copyright © 2016. All rights reserved.