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.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract MidiFileFormat | Returns: aMidiFileFormat object describing the MIDI file formatthe input stream from which file format information should
be extracted stream)Obtains the MIDI file format of the input stream provided. |
| public abstract MidiFileFormat | Returns: aMidiFileFormat object describing the MIDI file formatthe url)URL from which file format information should be
extractedObtains the MIDI file format of the |
| public abstract MidiFileFormat | Returns: aMidiFileFormat object describing the MIDI file formatthe file)File from which file format information should
be extractedObtains the MIDI file format of the |
| public abstract Sequence | Returns: aSequence object based on the MIDI file data contained
in the input streamthe input stream from which the stream)Sequence should be
constructedObtains a MIDI sequence from the input stream provided. |
| public abstract Sequence | Returns: aSequence object based on the MIDI file data pointed to
by the URLthe url)URL for which the Sequence should be
constructedObtains a MIDI sequence from the |
| public abstract Sequence | Returns: aSequence object based on the MIDI file data pointed to
by the Filethe file)File from which the Sequence should be
constructedObtains a MIDI sequence from the |
| MidiFileReader | back to summary |
|---|---|
| protected MidiFileReader() Constructor for subclasses to call. | |
| getMidiFileFormat | back to summary |
|---|---|
| public abstract 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
| |
| getMidiFileFormat | back to summary |
|---|---|
| public abstract MidiFileFormat getMidiFileFormat(URL url) throws InvalidMidiDataException, IOException Obtains the MIDI file format of the
| |
| getMidiFileFormat | back to summary |
|---|---|
| public abstract MidiFileFormat getMidiFileFormat(File file) throws InvalidMidiDataException, IOException Obtains the MIDI file format of the
| |
| getSequence | back to summary |
|---|---|
| public abstract 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
| |
| getSequence | back to summary |
|---|---|
| public abstract Sequence getSequence(URL url) throws InvalidMidiDataException, IOException Obtains a MIDI sequence from the
| |
| getSequence | back to summary |
|---|---|
| public abstract Sequence getSequence(File file) throws InvalidMidiDataException, IOException Obtains a MIDI sequence from the
| |