/** * Processes <code>inputData</code> and <code>inputParams</code> and * returns the converted result. Conversion is delegated to the * {@link Converter} set at construction time. * * @param inputData * input data * @param inputParams * input parameters * @return converted result. */ protected String doProcess(String inputData, Object... inputParams) { return converter.convert(inputData, inputParams); }
/** * Parses a message and renders the internal model into a different external * representation. */ public final OutputStream convert(InputStream in, OutputStream out, Object... params) throws IOException { S parsed = parse(in, params); T translated = zap(parsed, params); return render(translated, out, params); }
/** * Parses a message and renders the internal model into a different external * representation. */ public final Result convert(Source source, Result result, Object... params) throws IOException { S parsed = parse(source, params); T translated = zap(parsed, params); return render(translated, result, params); }
/** * Processes <code>inputData</code> and <code>inputParams</code> and * writes converted result to <code>outputData</code>. Conversion is * delegated to the {@link Converter} set at construction time. * * @param inputData * input data * @param outputData * output data * @param inputParams * input parameters * @throws IOException * if a system-level problem occurs */ protected void doProcess(Reader inputData, Writer outputData, Object... inputParams) throws IOException { converter.convert(inputData, outputData, inputParams); }
/** * Parses a message and renders the internal model into a different external * representation. */ public final Writer convert(Reader reader, Writer writer, Object... params) throws IOException { S parsed = parse(reader, params); T translated = zap(parsed, params); return render(translated, writer, params); }
/** * Processes <code>inputData</code> and <code>inputParams</code> and * writes converted result to <code>outputData</code>. Conversion is * delegated to the {@link Converter} set at construction time. * * @param inputData * input data * @param outputData * output data * @param inputParams * input parameters * @throws IOException * if a system-level problem occurs */ protected void doProcess(InputStream inputData, OutputStream outputData, Object... inputParams) throws IOException { converter.convert(inputData, outputData, inputParams); }
/** * Parses a message and renders the internal model into a different external * representation. * * @param message message to be converted * @return converted message * @throws ParseException * @throws RenderException */ public final String convert(String message, Object... params) { S parsed = parse(message, params); T translated = zap(parsed, params); return render(translated, params); }
/** * Processes <code>inputData</code> and <code>inputParams</code> and * writes converted result to <code>outputData</code>. Conversion is * delegated to the {@link Converter} set at construction time. * * @param inputData * input data * @param outputData * output data * @param inputParams * input parameters * @throws IOException * if a system-level problem occurs */ protected void doProcess(Source inputData, Result outputData, Object... inputParams) throws IOException { converter.convert(inputData, outputData, inputParams); }