public static boolean isConversionSupported(AudioFormat targetFormat,AudioFormat sourceFormat){
  List codecs=getFormatConversionProviders();
  for (int i=0; i < codecs.size(); i++) {
    FormatConversionProvider codec=(FormatConversionProvider)codecs.get(i);
    if (codec.isConversionSupported(targetFormat,sourceFormat)) {
      return true;
    }
  }
  return false;
}

public static boolean isConversionSupported ( AudioFormat targetFormat , AudioFormat sourceFormat ) { List codecs = getFormatConversionProviders ( ) ; for ( int i = 0 ; i < codecs . size ( ) ; i ++ ) { FormatConversionProvider codec = ( FormatConversionProvider ) codecs . get ( i ) ; if ( codec . isConversionSupported ( targetFormat , sourceFormat ) ) { return true ; } } return false ; }
indicates whether an audio input stream of a specified format can be obtained from an audio input stream of another specified format .
