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
.
Returns:
a
MidiFileFormat
object describing the MIDI file format
Parameters:
-
stream - the input stream from which file format information should be
extracted
Throws:
-
InvalidMidiDataException - if the stream does not point to valid MIDI
file data recognized by the system
-
IOException - if an I/O exception occurs
See Also:
InputStream.markSupported()
,
InputStream.mark(int)
,