code: @Override
      public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat) {
          for (Entry<AudioFormat, Map<AudioFormat.Encoding, Collection<AudioFormat>>> entry : m_targetFormatsFromSourceFormat.entrySet()) {
              AudioFormat format = entry.getKey();
              if (AudioFormats.matches(format, sourceFormat)) {
                  Map<AudioFormat.Encoding, Collection<AudioFormat>> targetEncodings = entry.getValue();
                  Collection<AudioFormat> targetFormats = targetEncodings.get(targetEncoding);
                  if (targetFormats != null) {
                      return targetFormats.toArray(EMPTY_FORMAT_ARRAY);
                  }
                  return EMPTY_FORMAT_ARRAY;
              }
          }
          return EMPTY_FORMAT_ARRAY;
      }
docs: /*
  public boolean isConversionSupported(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat)
  {
  return isAllowedSourceFormat(sourceFormat) &&
  isTargetEncodingSupported(targetEncoding);
  }