Class ParserUtils
java.lang.Object
de.iip_ecosphere.platform.connectors.parser.ParserUtils
Input parser utility methods.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputParser<?> createInstance(ClassLoader loader, String className, String charset) Convenience method for creating (custom) parser instances.
-
Constructor Details
-
ParserUtils
public ParserUtils()
-
-
Method Details
-
createInstance
Convenience method for creating (custom) parser instances.- Parameters:
loader- the class loader to load the class withclassName- the name of the parser class (must implementInputParserand 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 parser instance (null if the parser cannot be found/initialized)
-