throw new IllegalArgumentException(Messages.getString("sound.18")); //$NON-NLS-1$
}
public static int write(AudioInputStream stream,
AudioFileFormat.Type fileType, File out) throws IOException {
AudioFileWriter writer;
for (Iterator providers = ProviderService.getProviders(
audioFileWriterPath).iterator(); providers.hasNext();) {
writer = (AudioFileWriter) (providers.next());
if (writer.isFileTypeSupported(fileType, stream)) {
return writer.write(stream, fileType, out);
}
}
// sound.18=Type is not supported
throw new IllegalArgumentException(Messages.getString("sound.18")); //$NON-NLS-1$
}