/** * Parses <code>inputData</code> using <code>inputParams</code> and * returns the parsing result. Parsing is delegated to the {@link Parser} * set at construction time. * * @param inputData * input data * @param inputParams * input parameters * @return parsing result */ protected Object doProcess(String inputData, Object... inputParams) { return parser.parse(inputData, inputParams); }
/** * Parses <code>inputData</code> using <code>inputParams</code> and * returns the parsing result. Parsing is delegated to the {@link Parser} * set at construction time. * * @param inputData * input data * @param inputParams * input parameters * @throws IOException * if a system-level problem occurs * @return parsing result */ protected Object doProcess(Source inputData, Object... inputParams) throws IOException { return parser.parse(inputData, inputParams); }
/** * Parses <code>inputData</code> using <code>inputParams</code> and * returns the parsing result. Parsing is delegated to the {@link Parser} * set at construction time. * * @param inputData * input data * @param inputParams * input parameters * @throws IOException * if a system-level problem occurs * @return parsing result */ protected Object doProcess(Reader inputData, Object... inputParams) throws IOException { return parser.parse(inputData, inputParams); }
/** * Parses <code>inputData</code> using <code>inputParams</code> and * returns the parsing result. Parsing is delegated to the {@link Parser} * set at construction time. * * @param inputData * input data * @param inputParams * input parameters * @throws IOException * if a system-level problem occurs * @return parsing result */ protected Object doProcess(InputStream inputData, Object... inputParams) throws IOException { return parser.parse(inputData, inputParams); }
@Override public Object unmarshal(Exchange exchange, InputStream stream) throws Exception { Object params = adaptParams(exchange); return parser.parse(stream, params); }