Class TransformerSelectorImplOriginal

  • All Implemented Interfaces:
    TransformerSelector

    public class TransformerSelectorImplOriginal
    extends java.lang.Object
    implements TransformerSelector
    Implementation of a transformer selector that matches the code that was in place before a selector was introduced. Class is not used but exists to allow customers to maintain the previous approach if they really wish.
    Author:
    Alan Davis
    • Constructor Detail

      • TransformerSelectorImplOriginal

        public TransformerSelectorImplOriginal()
    • Method Detail

      • setContentTransformerRegistry

        public void setContentTransformerRegistry​(ContentTransformerRegistry contentTransformerRegistry)
      • selectTransformers

        public java.util.List<ContentTransformer> selectTransformers​(java.lang.String sourceMimetype,
                                                                     long sourceSize,
                                                                     java.lang.String targetMimetype,
                                                                     TransformationOptions options)
        Description copied from interface: TransformerSelector
        Returns a sorted list of transformers that identifies the order in which transformers should be tried.
        Specified by:
        selectTransformers in interface TransformerSelector
        options - transformation options
        Returns:
        a sorted list of transformers, with the best one first.