public boolean isConversionSupported(AudioFormat targetFormat,AudioFormat sourceFormat){
  AudioFormat targetFormats[]=getTargetFormats(targetFormat.getEncoding(),sourceFormat);
  for (int i=0; i < targetFormats.length; i++) {
    if (targetFormat.matches(targetFormats[i])) {
      return true;
    }
  }
  return false;
}

public boolean isConversionSupported ( AudioFormat targetFormat , AudioFormat sourceFormat ) { AudioFormat targetFormats [ ] = getTargetFormats ( targetFormat . getEncoding ( ) , sourceFormat ) ; for ( int i = 0 ; i < targetFormats . length ; i ++ ) { if ( targetFormat . matches ( targetFormats [ i ] ) ) { return true ; } } return false ; }
indicates whether the format converter supports conversion to one particular format from another .
