Class FormatterUtils
java.lang.Object
de.iip_ecosphere.platform.connectors.formatter.FormatterUtils
Output formatter utility methods.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputFormatter<?> createInstance(ClassLoader loader, String className, String charset) Convenience method for creating (custom) formatter instances.
-
Constructor Details
-
FormatterUtils
public FormatterUtils()
-
-
Method Details
-
createInstance
public static OutputFormatter<?> createInstance(ClassLoader loader, String className, String charset) Convenience method for creating (custom) formatter instances.- Parameters:
loader- the class loader to load the class withclassName- the name of the formatter class (must implementOutputFormatterand provide a single String constructor taking the charset encoding or as fallback a no-argument constructor)charset- the name of the charset encoding- Returns:
- the formatter instance (an instance of
DummyFormatterif the parser cannot be found/initialized)
-