Class ParserUtils

java.lang.Object
de.iip_ecosphere.platform.connectors.parser.ParserUtils

public class ParserUtils extends Object
Input parser utility methods.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • ParserUtils

      public ParserUtils()
  • Method Details

    • createInstance

      public static InputParser<?> createInstance(ClassLoader loader, String className, String charset)
      Convenience method for creating (custom) parser instances.
      Parameters:
      loader - the class loader to load the class with
      className - the name of the parser class (must implement InputParser and 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)