public boolean hasDefaultFileExtension(String extension){
  String ext=getDefaultFileExtension();
  return ext != null && ext.equalsIgnoreCase(extension);
}

public boolean hasDefaultFileExtension ( String extension ) { String ext = getDefaultFileExtension ( ) ; return ext != null && ext . equalsIgnoreCase ( extension ) ; }
checks if the specified file name extension matches the fileformat ' s default file name extension . the file name extension mime types are compared ignoring upper / lower - case differences .
