AudioFileFormat.Type[] supported = getAudioFileTypes(); for (Type element : supported) { if (fileType.equals(element)) { return true; } } return false;
AudioFileFormat.Type[] supported = getAudioFileTypes(stream); for (Type element : supported) { if (fileType.equals(element)) { return true; } } return false;