Class ResamplingPreset


  • public class ResamplingPreset
    extends Object
    Created by obarrile on 13/04/2019.
    • Method Detail

      • loadResamplingPreset

        public static ResamplingPreset loadResamplingPreset​(File file)
                                                     throws IOException
        Loads a resampling preset from the given file
        Parameters:
        file - the file
        Returns:
        the resampling preset, never null
        Throws:
        IOException - if an I/O error occurs
      • loadResamplingPreset

        public static ResamplingPreset loadResamplingPreset​(String string,
                                                            String presetName)
        Loads a resampling preset from an String
        Parameters:
        string - the string
        Returns:
        the resampling preset, never null
      • getResamplingPresetName

        public String getResamplingPresetName()
      • saveToFile

        public boolean saveToFile​(File file)
        Save the resampling preset to a file
        Parameters:
        file -
        Returns:
        true if success
      • saveToFile

        public boolean saveToFile​(File file,
                                  Product product)
        Save resampling preset to a file, but copying only the bandresampling presets for the bands contained in product.
        Parameters:
        file -
        product -
        Returns:
      • isCompatibleWithProduct

        public boolean isCompatibleWithProduct​(Product product)