|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sound.midi.spi.MidiFileReader
public abstract class MidiFileReader
The MidiFileReader abstract class defines the methods to be provided by a MIDI file reader.
Constructor Summary | |
---|---|
MidiFileReader()
|
Method Summary | |
---|---|
abstract MidiFileFormat |
getMidiFileFormat(File file)
Read a MidiFileFormat from the given stream. |
abstract MidiFileFormat |
getMidiFileFormat(InputStream stream)
Read a MidiFileFormat from the given stream. |
abstract MidiFileFormat |
getMidiFileFormat(URL url)
Read a MidiFileFormat from the given stream. |
abstract Sequence |
getSequence(File file)
Read a Sequence from the given stream. |
abstract Sequence |
getSequence(InputStream stream)
Read a Sequence from the given stream. |
abstract Sequence |
getSequence(URL url)
Read a Sequence from the given stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MidiFileReader()
Method Detail |
---|
public abstract MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException
stream
- the stream from which to read the MIDI data
InvalidMidiDataException
- if the stream refers to invalid data
IOException
- if an I/O exception occurs while readingpublic abstract MidiFileFormat getMidiFileFormat(URL url) throws InvalidMidiDataException, IOException
url
- the url from which to read the MIDI data
InvalidMidiDataException
- if the url refers to invalid data
IOException
- if an I/O exception occurs while readingpublic abstract MidiFileFormat getMidiFileFormat(File file) throws InvalidMidiDataException, IOException
file
- the file from which to read the MIDI data
InvalidMidiDataException
- if the file refers to invalid data
IOException
- if an I/O exception occurs while readingpublic abstract Sequence getSequence(InputStream stream) throws InvalidMidiDataException, IOException
stream
- the stream from which to read the MIDI data
InvalidMidiDataException
- if the stream refers to invalid data
IOException
- if an I/O exception occurs while readingpublic abstract Sequence getSequence(URL url) throws InvalidMidiDataException, IOException
url
- the url from which to read the MIDI data
InvalidMidiDataException
- if the url refers to invalid data
IOException
- if an I/O exception occurs while readingpublic abstract Sequence getSequence(File file) throws InvalidMidiDataException, IOException
file
- the file from which to read the MIDI data
InvalidMidiDataException
- if the file refers to invalid data
IOException
- if an I/O exception occurs while reading
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |