com.io7m.smfj.frontend

## Class SMFSerializerProviders

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

-     public final class SMFSerializerProviders
      extends Object

  Convenience functions to locate serializer providers via `ServiceLoader`.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Optional<SMFSerializerProviderType>` | `findSerializerProvider(Optional<String> format_opt, String file)` Try to find a serializer provider.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### findSerializerProvider

          public static Optional<SMFSerializerProviderType> findSerializerProvider(Optional<String> format_opt,
                                                                                   String file)

      Try to find a serializer 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 serializer provider, if a suitable one is available

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