public static boolean isFileTypeSupported(int fileType,Sequence sequence){
  List providers=getMidiFileWriters();
  for (int i=0; i < providers.size(); i++) {
    MidiFileWriter writer=(MidiFileWriter)providers.get(i);
    if (writer.isFileTypeSupported(fileType,sequence)) {
      return true;
    }
  }
  return false;
}

public static boolean isFileTypeSupported ( int fileType , Sequence sequence ) { List providers = getMidiFileWriters ( ) ; for ( int i = 0 ; i < providers . size ( ) ; i ++ ) { MidiFileWriter writer = ( MidiFileWriter ) providers . get ( i ) ; if ( writer . isFileTypeSupported ( fileType , sequence ) ) { return true ; } } return false ; }
indicates whether a midi file of the file type specified can be written from the sequence indicated .
