Class Converter<S,T>

java.lang.Object
org.openehealth.ipf.commons.core.modules.api.Converter<S,T>
Type Parameters:
S - output type of parse(), input type translate()
T - output type of translate() input type of render()
All Implemented Interfaces:
Parser<S>, Renderer<T>, Transmogrifier<S,T>

public abstract class Converter<S,T> extends Object implements Parser<S>, Renderer<T>, Transmogrifier<S,T>
Abstract class that serializes parsing, translating and rendering steps.
Author:
Christian Ohr
  • Constructor Details

    • Converter

      public Converter()
  • Method Details

    • convert

      public final String convert(String message, Object... params)
      Parses a message and renders the internal model into a different external representation.
      Parameters:
      message - message to be converted
      Returns:
      converted message
    • convert

      public final OutputStream convert(InputStream in, OutputStream out, Object... params) throws IOException
      Parses a message and renders the internal model into a different external representation.
      Throws:
      IOException
    • convert

      public final Result convert(Source source, Result result, Object... params) throws IOException
      Parses a message and renders the internal model into a different external representation.
      Throws:
      IOException
    • convert

      public final Writer convert(Reader reader, Writer writer, Object... params) throws IOException
      Parses a message and renders the internal model into a different external representation.
      Throws:
      IOException