Class MediatypeService

java.lang.Object
nl.siegmann.epublib.service.MediatypeService

public class MediatypeService extends Object
Manages mediatypes that are used by epubs
  • Field Details

  • Constructor Details

    • MediatypeService

      public MediatypeService()
  • Method Details

    • isBitmapImage

      public static boolean isBitmapImage(MediaType mediaType)
    • determineMediaType

      public static MediaType determineMediaType(String filename)
      Gets the MediaType based on the file extension. Null of no matching extension found.
      Parameters:
      filename -
      Returns:
      the MediaType based on the file extension.
    • getMediaTypeByName

      public static MediaType getMediaTypeByName(String mediaTypeName)