javax.sound.midi.spi
public abstract class MidiFileReader extends Object
Since: 1.3
Method Summary | |
---|---|
abstract MidiFileFormat | getMidiFileFormat(InputStream stream)
Read a MidiFileFormat from the given stream.
|
abstract MidiFileFormat | getMidiFileFormat(URL url)
Read a MidiFileFormat from the given stream.
|
abstract MidiFileFormat | getMidiFileFormat(File file)
Read a MidiFileFormat from the given stream.
|
abstract Sequence | getSequence(InputStream stream)
Read a Sequence from the given stream.
|
abstract Sequence | getSequence(URL url)
Read a Sequence from the given stream.
|
abstract Sequence | getSequence(File file)
Read a Sequence from the given stream.
|
Parameters: stream the stream from which to read the MIDI data
Returns: the MidiFileFormat object
Throws: InvalidMidiDataException if the stream refers to invalid data IOException if an I/O exception occurs while reading
Parameters: url the url from which to read the MIDI data
Returns: the MidiFileFormat object
Throws: InvalidMidiDataException if the url refers to invalid data IOException if an I/O exception occurs while reading
Parameters: file the file from which to read the MIDI data
Returns: the MidiFileFormat object
Throws: InvalidMidiDataException if the file refers to invalid data IOException if an I/O exception occurs while reading
Parameters: stream the stream from which to read the MIDI data
Returns: the Sequence object
Throws: InvalidMidiDataException if the stream refers to invalid data IOException if an I/O exception occurs while reading
Parameters: url the url from which to read the MIDI data
Returns: the Sequence object
Throws: InvalidMidiDataException if the url refers to invalid data IOException if an I/O exception occurs while reading
Parameters: file the file from which to read the MIDI data
Returns: the Sequence object
Throws: InvalidMidiDataException if the file refers to invalid data IOException if an I/O exception occurs while reading