public class ParserAdapter extends ProcessorAdapter
Parser
.Constructor and Description |
---|
ParserAdapter(Parser parser)
Creates a new
ParserAdapter and sets the delegate
Parser . |
Modifier and Type | Method and Description |
---|---|
protected void |
doProcess(org.apache.camel.Exchange exchange,
Object inputData,
Object... inputParams)
Processes input data and populates the output message.
|
protected Object |
doProcess(InputStream inputData,
Object... inputParams)
Parses
inputData using inputParams and
returns the parsing result. |
protected Object |
doProcess(Reader inputData,
Object... inputParams)
Parses
inputData using inputParams and
returns the parsing result. |
protected Object |
doProcess(Source inputData,
Object... inputParams)
Parses
inputData using inputParams and
returns the parsing result. |
protected Object |
doProcess(String inputData,
Object... inputParams)
Parses
inputData using inputParams and
returns the parsing result. |
input, params, process, staticParams
adaptInput, adaptParams, input, params
public ParserAdapter(Parser parser)
ParserAdapter
and sets the delegate
Parser
.parser
- a parser.protected void doProcess(org.apache.camel.Exchange exchange, Object inputData, Object... inputParams) throws Exception
doProcess
implementations.doProcess
in class ProcessorAdapter
exchange
- message exchange where to write processing results.inputData
- input data.inputParams
- input parameters.Exception
- if a processing error occurs.doProcess(InputStream, Object...)
,
doProcess(Reader, Object...)
,
doProcess(Source, Object...)
,
doProcess(String, Object...)
protected Object doProcess(InputStream inputData, Object... inputParams) throws IOException
inputData
using inputParams
and
returns the parsing result. Parsing is delegated to the Parser
set at construction time.inputData
- input datainputParams
- input parametersIOException
- if a system-level problem occursprotected Object doProcess(Reader inputData, Object... inputParams) throws IOException
inputData
using inputParams
and
returns the parsing result. Parsing is delegated to the Parser
set at construction time.inputData
- input datainputParams
- input parametersIOException
- if a system-level problem occursprotected Object doProcess(Source inputData, Object... inputParams) throws IOException
inputData
using inputParams
and
returns the parsing result. Parsing is delegated to the Parser
set at construction time.inputData
- input datainputParams
- input parametersIOException
- if a system-level problem occursCopyright © 2018 Open eHealth Foundation. All rights reserved.