Class ConverterAdapter

All Implemented Interfaces:
Processor, Adapter

public class ConverterAdapter extends ProcessorAdapter
Adapts a Converter.
Author:
Martin Krasser
  • Constructor Details

  • Method Details

    • doProcess

      protected void doProcess(Exchange exchange, Object inputData, Object... inputParams) throws Exception
      Processes input data and populates the output message. This method delegates message processing to more specialized doProcess implementations.
      Specified by:
      doProcess in class ProcessorAdapter
      Parameters:
      exchange - message exchange where to write processing results.
      inputData - input data.
      inputParams - input parameters.
      Throws:
      Exception - if a processing error occurs.
      See Also:
    • doProcess

      protected void doProcess(InputStream inputData, OutputStream outputData, Object... inputParams) throws IOException
      Processes inputData and inputParams and writes converted result to outputData. Conversion is delegated to the Converter set at construction time.
      Parameters:
      inputData - input data
      outputData - output data
      inputParams - input parameters
      Throws:
      IOException - if a system-level problem occurs
    • doProcess

      protected void doProcess(Reader inputData, Writer outputData, Object... inputParams) throws IOException
      Processes inputData and inputParams and writes converted result to outputData. Conversion is delegated to the Converter set at construction time.
      Parameters:
      inputData - input data
      outputData - output data
      inputParams - input parameters
      Throws:
      IOException - if a system-level problem occurs
    • doProcess

      protected void doProcess(Source inputData, Result outputData, Object... inputParams) throws IOException
      Processes inputData and inputParams and writes converted result to outputData. Conversion is delegated to the Converter set at construction time.
      Parameters:
      inputData - input data
      outputData - output data
      inputParams - input parameters
      Throws:
      IOException - if a system-level problem occurs
    • doProcess

      protected String doProcess(String inputData, Object... inputParams)
      Processes inputData and inputParams and returns the converted result. Conversion is delegated to the Converter set at construction time.
      Parameters:
      inputData - input data
      inputParams - input parameters
      Returns:
      converted result.