Class FormatEncoderFactory


  • public class FormatEncoderFactory
    extends Object
    Factory for file format encoder.
    Since:
    6.1.0
    Version:
    $Revision: 23034 $ $Date: 2019-08-05 16:52:47 -0300 (Mon, 05 Aug 2019) $
    • Constructor Detail

      • FormatEncoderFactory

        public FormatEncoderFactory()
    • Method Detail

      • getFormatEncoder

        public static IFormatTransformer getFormatEncoder​(String contentType,
                                                          String targetFormat,
                                                          String serviceInstanceId)
                                                   throws PortalException
        Returns a IFormatTransformer class instance based on content type and target format.
        Parameters:
        contentType - the source content type of encoder.
        targetFormat - the target file format.
        serviceInstanceId - the service instance id.
        Returns:
        a format encoder according to the content type and the target format.
        Throws:
        PortalException
        Since:
        6.1.0