Class SMFParserProviders


  • public final class SMFParserProviders
    extends java.lang.Object
    Convenience functions to locate parser providers via ServiceLoader.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<SMFParserProviderType> findParserProvider​(java.util.Optional<java.lang.String> format_opt, java.lang.String file)
      Try to find a parser provider.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findParserProvider

        public static java.util.Optional<SMFParserProviderType> findParserProvider​(java.util.Optional<java.lang.String> format_opt,
                                                                                   java.lang.String file)
        Try to find a parser provider. If a format name is not specified, the format is inferred from the suffix of the given file.
        Parameters:
        format_opt - An optional format name.
        file - A file name
        Returns:
        A parser provider, if a suitable one is available