T
- the type of CustomContext
public interface PipelineCustomContext>
Modifier and Type | Method and Description |
---|---|
Pipeline> |
close(WorkerContext context, Tag t, ProcessObject po)
Called when a closing tag has been encountered.
|
Pipeline> |
content(WorkerContext context, Tag t, String content, ProcessObject po)
Called when content has been encountered.
|
Pipeline> |
getNext()
Returns the next pipeline in line.
|
Pipeline> |
init(WorkerContext context)
The init method allows implementation to initialize the pipeline. e.g.
|
Pipeline> |
open(WorkerContext context, Tag t, ProcessObject po)
Called when an opening tag has been encountered.
|
Pipeline> init(WorkerContext context) throws PipelineException
WorkerContext.put(String, CustomContext)
.
context
- the WorkerContext
PipelineException
- can be thrown to indicate that something went wrong.
Pipeline> open(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
context
- the WorkerContext
t
- the Tag
po
- a processObject to put Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.
Pipeline> content(WorkerContext context, Tag t, String content, ProcessObject po) throws PipelineException
context
- the WorkerContext
t
- the Tag
content
- the content
po
- a processObject to put Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.
Pipeline> close(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
context
- the WorkerContext
t
- the Tag
po
- a processObject to put Writable
s in
PipelineException
- can be thrown to indicate that something went wrong.
Pipeline> getNext()
Copyright © 1998–2016. All rights reserved.