Interface Transcoder

    • Method Detail

      • transcode

        java.lang.Object transcode​(java.lang.Object content,
                                   MediaType contentType,
                                   MediaType destinationType)
        Transcodes content between two different MediaType.
        Parameters:
        content - Content to transcode.
        contentType - The MediaType of the content.
        destinationType - The target MediaType to convert.
        Returns:
        the transcoded content.
      • getSupportedMediaTypes

        java.util.Set<MediaType> getSupportedMediaTypes()
        Returns:
        all the MediaType handled by this Transcoder.
      • supportsConversion

        default boolean supportsConversion​(MediaType mediaType,
                                           MediaType other)
        Returns:
        true if the transcoder supports the conversion between supplied MediaType.
      • supports

        default boolean supports​(MediaType mediaType)