Class ProductTransformerFactory


  • public class ProductTransformerFactory
    extends Object
    Transformer Factory class that determines whether to transform a PDS3 or PDS4 product.
    Author:
    mcayanan
    • Method Detail

      • newInstance

        public ProductTransformer newInstance​(File target,
                                              String format)
                                       throws TransformException
        Gets an instance of a Transformer. If the given label ends in ".xml", then this will return a PDS4 Transformer object. Otherwise, a PDS3 Transformer object will be returned.
        Parameters:
        target - A PDS3 or PDS4 label file.
        format - The transformation format.
        Returns:
        The appropriate Transformer object.
        Throws:
        TransformException - If the input label could not be opened or the format type is not one of the valid formats.