com.io7m.smfj.frontend

## Class SMFParserProviders

- java.lang.Object
- - com.io7m.smfj.frontend.SMFParserProviders

-     public final class SMFParserProviders
      extends Object

  Convenience functions to locate parser providers via `ServiceLoader`.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Optional<SMFParserProviderType>` | `findParserProvider(Optional<String> format_opt, 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 Optional<SMFParserProviderType> findParserProvider(Optional<String> format_opt,
                                                                           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

Copyright © 2017 <code@io7m.com> http://io7m.com