Enum MediaFileType

    • Method Detail

      • values

        public static MediaFileType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MediaFileType c : MediaFileType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MediaFileType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getContentTypes

        public Set<String> getContentTypes()
        Returns:
        Content types
      • getExtensions

        public Set<String> getExtensions()
        Returns:
        File extensions
      • isImage

        public static boolean isImage​(@Nullable
                                      @Nullable String fileExtension)
        Check if the given file extension is supported by the Media Handler for rendering as image.
        Parameters:
        fileExtension - File extension
        Returns:
        true if image
      • getImageFileExtensions

        @NotNull
        public static @NotNull Set<String> getImageFileExtensions()
        Returns:
        Image file extensions supported by the Media Handler for rendering as image.
      • getImageContentTypes

        @NotNull
        public static @NotNull Set<String> getImageContentTypes()
        Returns:
        Image content types supported by the Media Handler for rendering as image.
      • isBrowserImage

        public static boolean isBrowserImage​(@Nullable
                                             @Nullable String fileExtension)
        Check if the given file extension is supported for direct display in a browser.
        Parameters:
        fileExtension - File extension
        Returns:
        true if image is supported in browsers
      • getBrowserImageFileExtensions

        @NotNull
        public static @NotNull Set<String> getBrowserImageFileExtensions()
        Returns:
        Image file extensions supported for direct display in a browser.
      • getBrowserImageContentTypes

        @NotNull
        public static @NotNull Set<String> getBrowserImageContentTypes()
        Returns:
        Image content types supported for direct display in a browser.
      • isVectorImage

        public static boolean isVectorImage​(@Nullable
                                            @Nullable String fileExtension)
        Check if the given file extension is a vector image file extension.
        Parameters:
        fileExtension - File extension
        Returns:
        true if image is a vector image.
      • getVectorImageFileExtensions

        @NotNull
        public static @NotNull Set<String> getVectorImageFileExtensions()
        Returns:
        Image file extensions that are vector images.
      • getVectorImageContentTypes

        @NotNull
        public static @NotNull Set<String> getVectorImageContentTypes()
        Returns:
        Image content types that are vector images.
      • isFlash

        @Deprecated
        public static boolean isFlash​(@Nullable
                                      @Nullable String fileExtension)
        Deprecated.
        Flash support is deprecated
        Check if the given file extension is an flash.
        Parameters:
        fileExtension - File extension
        Returns:
        true if flash
      • getFlashFileExtensions

        @Deprecated
        @NotNull
        public static @NotNull Set<String> getFlashFileExtensions()
        Deprecated.
        Flash support is deprecated
        Returns:
        Flash file extensions
      • getFlashContentTypes

        @Deprecated
        @NotNull
        public static @NotNull Set<String> getFlashContentTypes()
        Deprecated.
        Flash support is deprecated
        Returns:
        Flash content types