Class DataConverterFactory

java.lang.Object
org.frankframework.dataconversion.DataConverterFactory

public class DataConverterFactory extends Object
  • Method Details

    • getConverter

      public static DataConverter getConverter(@Nullable Object data, ThrowingSupplier<@Nullable String, IOException> charsetSupplier)
      Factory method to create a DataConverter to wrap the data that is passed
      Parameters:
      data - Data to be wrapped, or NULL.
      charsetSupplier - Supplier of a character-set for the data. The supplier may return a NULL value if no charset can be detected. Only used for binary data.
      Returns:
      Instance implementing the DataConverter interface