Home » openjdk-7 » javax.sound » midi » spi » [javadoc | source]
javax.sound.midi.spi
abstract public class: MidiFileReader [javadoc | source]
java.lang.Object
   javax.sound.midi.spi.MidiFileReader
A MidiFileReader supplies MIDI file-reading services. Classes implementing this interface can parse the format information from one or more types of MIDI file, and can produce a Sequence object from files of these types.
Method from javax.sound.midi.spi.MidiFileReader Summary:
getMidiFileFormat,   getMidiFileFormat,   getMidiFileFormat,   getSequence,   getSequence,   getSequence
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.sound.midi.spi.MidiFileReader Detail:
 abstract public MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException
    Obtains the MIDI file format of the input stream provided. The stream must point to valid MIDI file data. In general, MIDI file readers may need to read some data from the stream before determining whether they support it. These parsers must be able to mark the stream, read enough data to determine whether they support the stream, and, if not, reset the stream's read pointer to its original position. If the input stream does not support this, this method may fail with an IOException.
 abstract public MidiFileFormat getMidiFileFormat(URL url) throws InvalidMidiDataException, IOException
    Obtains the MIDI file format of the URL provided. The URL must point to valid MIDI file data.
 abstract public MidiFileFormat getMidiFileFormat(File file) throws InvalidMidiDataException, IOException
    Obtains the MIDI file format of the File provided. The File must point to valid MIDI file data.
 abstract public Sequence getSequence(InputStream stream) throws InvalidMidiDataException, IOException
    Obtains a MIDI sequence from the input stream provided. The stream must point to valid MIDI file data. In general, MIDI file readers may need to read some data from the stream before determining whether they support it. These parsers must be able to mark the stream, read enough data to determine whether they support the stream, and, if not, reset the stream's read pointer to its original position. If the input stream does not support this, this method may fail with an IOException.
 abstract public Sequence getSequence(URL url) throws InvalidMidiDataException, IOException
    Obtains a MIDI sequence from the URL provided. The URL must point to valid MIDI file data.
 abstract public Sequence getSequence(File file) throws InvalidMidiDataException, IOException
    Obtains a MIDI sequence from the File provided. The File must point to valid MIDI file data.