Package com.enonic.xp.media

## Interface MediaTypeService

- All Superinterfaces:
    `Iterable<MediaTypeProvider>`
  All Known Implementing Classes:
    `MediaTypes`

      public interface MediaTypeService
      extends Iterable<MediaTypeProvider>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Map<String,​MediaType>` | `asMap()` |
    `MediaType` | `fromExt​(String ext)` |
    `MediaType` | `fromFile​(String fileName)` |

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, iterator, spliterator`

- - ### Method Detail

    - #### fromExt

          MediaType fromExt​(String ext)

    - #### fromFile

          MediaType fromFile​(String fileName)

    - #### asMap

          Map<String,​MediaType> asMap()