AudioFileReader reader = (AudioFileReader) i.next(); try { return reader.getAudioInputStream(is); } catch (UnsupportedAudioFileException _) {  }
FormatConversionProvider prov = (FormatConversionProvider) i.next(); if (! prov.isConversionSupported(targ, ais.getFormat())) continue; return prov.getAudioInputStream(targ, ais);
  public static AudioInputStream getAudioInputStream(InputStream is)    throws UnsupportedAudioFileException, IOException  {    Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class);    while (i.hasNext())      {        AudioFileReader reader = (AudioFileReader) i.next();        try          {            return reader.getAudioInputStream(is);          }        catch (UnsupportedAudioFileException _)          {            // Try the next provider.          }      }    throw new UnsupportedAudioFileException("input stream type not recognized");  }