Class MediatypeService


  • public class MediatypeService
    extends java.lang.Object
    Manages mediatypes that are used by epubs
    • Constructor Detail

      • MediatypeService

        public MediatypeService()
    • Method Detail

      • isBitmapImage

        public static boolean isBitmapImage​(MediaType mediaType)
      • determineMediaType

        public static MediaType determineMediaType​(java.lang.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​(java.lang.String mediaTypeName)