public class ResamplingPreset extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FILENAME_EXTENSION |
static String |
STRING_SEPARATOR |
Constructor and Description |
---|
ResamplingPreset(String resamplingPresetName,
ArrayList<BandResamplingPreset> bandResamplingPresets) |
ResamplingPreset(String resamplingPresetName,
BandResamplingPreset[] bandResamplingPresets) |
Modifier and Type | Method and Description |
---|---|
BandResamplingPreset |
getBandResamplingPreset(String bandName) |
ArrayList<BandResamplingPreset> |
getBandResamplingPresets() |
String |
getResamplingPresetName() |
boolean |
isCompatibleWithProduct(Product product) |
static ResamplingPreset |
loadResamplingPreset(File file)
Loads a resampling preset from the given file
|
static ResamplingPreset |
loadResamplingPreset(String string,
String presetName)
Loads a resampling preset from an String
|
boolean |
saveToFile(File file)
Save the resampling preset to a file
|
boolean |
saveToFile(File file,
Product product)
Save resampling preset to a file, but copying only the bandresampling presets for the bands contained in product.
|
public static final String FILENAME_EXTENSION
public static final String STRING_SEPARATOR
public ResamplingPreset(String resamplingPresetName, ArrayList<BandResamplingPreset> bandResamplingPresets)
public ResamplingPreset(String resamplingPresetName, BandResamplingPreset[] bandResamplingPresets)
public static ResamplingPreset loadResamplingPreset(File file) throws IOException
file
- the fileIOException
- if an I/O error occurspublic static ResamplingPreset loadResamplingPreset(String string, String presetName)
string
- the stringpublic String getResamplingPresetName()
public ArrayList<BandResamplingPreset> getBandResamplingPresets()
public BandResamplingPreset getBandResamplingPreset(String bandName)
public boolean saveToFile(File file)
file
- public boolean saveToFile(File file, Product product)
file
- product
- public boolean isCompatibleWithProduct(Product product)
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.