Class FormatRegistry

java.lang.Object
is.galia.image.FormatRegistry

public final class FormatRegistry extends Object

Provides access to the master registry of Formats.

The registry is seeded early in the application lifecycle by DecoderFactory with the supported formats of all codecs.

See Also:
  • Method Details

    • addFormat

      public static void addFormat(Format format)
    • allFormats

      public static Set<Format> allFormats()
      Returns:
      Unmodifiable set of all formats.
    • containsMediaType

      public static boolean containsMediaType(MediaType mediaType)
      Parameters:
      mediaType - Media type.
      Returns:
      Whether any formats in the registry have the given media type.
    • formatWithKey

      public static Format formatWithKey(String key)
      Parameters:
      key - Format key.
      Returns:
      Format with the given key, or null if no such format is registered.