Additional top-level class in compilation unit: SMFParser.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MidiFileFormat | getMidiFileFormat(InputStream stream)
Implements abstract javax. Obtains the MIDI file format of the input stream provided. |
| public MidiFileFormat | getMidiFileFormat(URL url)
Implements abstract javax. Obtains the MIDI file format of the |
| public MidiFileFormat | getMidiFileFormat(File file)
Implements abstract javax. Obtains the MIDI file format of the |
| private MidiFileFormat | |
| public Sequence | getSequence(InputStream stream)
Implements abstract javax. Obtains a MIDI sequence from the input stream provided. |
| public Sequence | getSequence(URL url)
Implements abstract javax. Obtains a MIDI sequence from the |
| public Sequence | getSequence(File file)
Implements abstract javax. Obtains a MIDI sequence from the |
| bisBufferSize | back to summary |
|---|---|
| private static final int bisBufferSize | |
| MThd_MAGIC | back to summary |
|---|---|
| private static final int MThd_MAGIC | |
| StandardMidiFileReader | back to summary |
|---|---|
| public StandardMidiFileReader() | |
| getMidiFileFormat | back to summary |
|---|---|
| public MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException Implements abstract javax. Doc from javax. 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 MidiFileFormat getMidiFileFormat(URL url) throws InvalidMidiDataException, IOException Implements abstract javax. Doc from javax. Obtains the MIDI file format of the
| |
| getMidiFileFormat | back to summary |
|---|---|
| public MidiFileFormat getMidiFileFormat(File file) throws InvalidMidiDataException, IOException Implements abstract javax. Doc from javax. Obtains the MIDI file format of the
| |
| getMidiFileFormatFromStream | back to summary |
|---|---|
| private MidiFileFormat getMidiFileFormatFromStream(InputStream stream, int fileLength, SMFParser smfParser) throws InvalidMidiDataException, IOException | |
| getSequence | back to summary |
|---|---|
| public Sequence getSequence(InputStream stream) throws InvalidMidiDataException, IOException Implements abstract javax. Doc from javax. 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 Sequence getSequence(URL url) throws InvalidMidiDataException, IOException Implements abstract javax. Doc from javax. Obtains a MIDI sequence from the
| |
| getSequence | back to summary |
|---|---|
| public Sequence getSequence(File file) throws InvalidMidiDataException, IOException Implements abstract javax. Doc from javax. Obtains a MIDI sequence from the
| |