public static boolean isSupportedRasterExtension ( String name ) { for ( String ext : supportedRasters ) { if ( name . toLowerCase ( ) . endsWith ( ext ) ) { return true ; } } return false ; }
Checks a given name of a file if it is a supported raster extension .