for (int nSourceFormat = 0;
nSourceFormat < sourceFormats.size();
nSourceFormat++) {
AudioFormat sourceFormat = (AudioFormat) sourceFormats.get(nSourceFormat);
List supportedTargetEncodings = new ArraySet();
m_targetEncodingsFromSourceFormat.put(sourceFormat, supportedTargetEncodings);
Map targetFormatsFromTargetEncodings = new HashMap();
m_targetFormatsFromSourceFormat.put(sourceFormat, targetFormatsFromTargetEncodings);
for (int nTargetFormat = 0;
nTargetFormat < targetFormats.size();
nTargetFormat++) {
AudioFormat targetFormat = (AudioFormat) targetFormats.get(nTargetFormat);
if (abConversionPossible[nSourceFormat][nTargetFormat]) {
AudioFormat.Encoding targetEncoding = targetFormat.getEncoding();
supportedTargetEncodings.add(targetEncoding);
Collection supportedTargetFormats = (Collection) targetFormatsFromTargetEncodings.get(targetEncoding);
if (supportedTargetFormats == null) {
supportedTargetFormats = new ArraySet();
targetFormatsFromTargetEncodings.put(targetEncoding, supportedTargetFormats);
}
supportedTargetFormats.add(targetFormat);
}
}