bodhidharma.midi_parsing
Class MIDIFileVerifier

java.lang.Object
  extended by bodhidharma.midi_parsing.MIDIFileVerifier

public class MIDIFileVerifier
extends java.lang.Object

A holder class for the verifyMIDIFiles method.

Author:
Cory McKay

Constructor Summary
MIDIFileVerifier()
           
 
Method Summary
static java.lang.String verifyMIDIFiles(Recording[] recordings)
          Takes in an array of Recording objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIDIFileVerifier

public MIDIFileVerifier()
Method Detail

verifyMIDIFiles

public static java.lang.String verifyMIDIFiles(Recording[] recordings)
Takes in an array of Recording objects. Checks that the file referred to in the path of each object exists at the given paths.

Returns a String noting that no problems were encountered if all the files are found parsed succesfully. If not, returns a string identifying the files that could not be found, and gives some information as to the cause of the problem.

Although currently commented out, there is a section of code that can check that each file can be parsed by javax.sound.midi.

Parameters:
recordings - The set of recordings to be checked.
Returns:
The results of the verification.
See Also:
Recording, DefaultMutableTreeNode