|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
javax.sound.midi.spi.MidiFileReader
public abstract class MidiFileReader

A 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.
| Constructor Summary | |
|---|---|
MidiFileReader
|
|
| Method Summary | |
|---|---|
abstract MidiFileFormat |
getMidiFileFormat
Obtains the MIDI file format of the File provided. |
abstract MidiFileFormat |
getMidiFileFormat
Obtains the MIDI file format of the input stream provided. |
abstract MidiFileFormat |
getMidiFileFormat
Obtains the MIDI file format of the URL provided. |
abstract Sequence |
getSequence
Obtains a MIDI sequence from the File provided. |
abstract Sequence |
getSequence
Obtains a MIDI sequence from the input stream provided. |
abstract Sequence |
getSequence
Obtains a MIDI sequence from the URL provided. |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Constructor Detail |
|---|

public MidiFileReader()
| Method Detail |
|---|

public abstract MidiFileFormat![]()
![]()
getMidiFileFormat(InputStream
![]()
![]()
stream) throws InvalidMidiDataException
![]()
![]()
, IOException
![]()
![]()
IOException.
stream - the input stream from which file format information should be
extracted
MidiFileFormat object describing the MIDI file format
InvalidMidiDataException

- if the stream does not point to valid MIDI
file data recognized by the system
IOException

- if an I/O exception occursInputStream.markSupported()
,
InputStream.mark(int)


public abstract MidiFileFormat![]()
![]()
getMidiFileFormat(URL
![]()
![]()
url) throws InvalidMidiDataException
![]()
![]()
, IOException
![]()
![]()
url - the URL from which file format information should be
extracted
MidiFileFormat object describing the MIDI file format
InvalidMidiDataException

- if the URL does not point to valid MIDI
file data recognized by the system
IOException

- if an I/O exception occurs

public abstract MidiFileFormat![]()
![]()
getMidiFileFormat(File
![]()
![]()
file) throws InvalidMidiDataException
![]()
![]()
, IOException
![]()
![]()
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 format
InvalidMidiDataException

- if the File does not point to valid MIDI
file data recognized by the system
IOException

- if an I/O exception occurs

public abstract Sequence![]()
![]()
getSequence(InputStream
![]()
![]()
stream) throws InvalidMidiDataException
![]()
![]()
, 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.
InvalidMidiDataException

- if the stream does not point to valid MIDI
file data recognized by the system
IOException

- if an I/O exception occursInputStream.markSupported()
,
InputStream.mark(int)


public abstract Sequence![]()
![]()
getSequence(URL
![]()
![]()
url) throws InvalidMidiDataException
![]()
![]()
, IOException
![]()
![]()
url - the URL for which the Sequence should be
constructed
Sequence object based on the MIDI file data pointed
to by the URL
InvalidMidiDataException

- if the URL does not point to valid MIDI
file data recognized by the system
IOException

- if an I/O exception occurs

public abstract Sequence![]()
![]()
getSequence(File
![]()
![]()
file) throws InvalidMidiDataException
![]()
![]()
, IOException
![]()
![]()
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
InvalidMidiDataException

- if the File does not point to valid MIDI
file data recognized by the system
IOException

- if an I/O exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||