java.lang.Object | ||
↳ | javax.sound.midi.spi.MidiFileReader | |
↳ | com.sun.media.sound.StandardMidiFileReader |
MIDI file reader.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtains the MIDI file format of the input stream provided.
| |||||||||||
Obtains the MIDI file format of the
File provided. | |||||||||||
Obtains the MIDI file format of the URL provided.
| |||||||||||
Obtains a MIDI sequence from the URL provided.
| |||||||||||
Obtains a MIDI sequence from the input stream provided.
| |||||||||||
Obtains a MIDI sequence from the
File provided. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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
.
stream | the input stream from which file format information should be extracted |
---|
MidiFileFormat
object describing the MIDI file formatObtains the MIDI file format of the File
provided.
The File
must point to valid MIDI file data.
file | the File from which file format information should be
extracted |
---|
MidiFileFormat
object describing the MIDI file formatObtains the MIDI file format of the URL provided. The URL must point to valid MIDI file data.
url | the URL from which file format information should be extracted |
---|
MidiFileFormat
object describing the MIDI file formatObtains a MIDI sequence from the URL provided. The URL must point to valid MIDI file data.
url | the URL for which the Sequence should be
constructed |
---|
Sequence
object based on the MIDI file data pointed
to by the URLObtains 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.
stream | the input stream from which the Sequence should be
constructed |
---|
Sequence
object based on the MIDI file data contained
in the input stream.Obtains a MIDI sequence from the File
provided. The File
must
point to valid MIDI file data.
file | the File from which the Sequence should be
constructed |
---|
Sequence
object based on the MIDI file data pointed
to by the File