public abstract class MidiFileReader extends Object
| Constructor and Description |
|---|
MidiFileReader() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public MidiFileReader()
public abstract MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException
stream - the stream from which to read the MIDI dataInvalidMidiDataException - if the stream refers to invalid dataIOException - 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 dataInvalidMidiDataException - if the url refers to invalid dataIOException - 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 dataInvalidMidiDataException - if the file refers to invalid dataIOException - 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 dataInvalidMidiDataException - if the stream refers to invalid dataIOException - 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 dataInvalidMidiDataException - if the url refers to invalid dataIOException - 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 dataInvalidMidiDataException - if the file refers to invalid dataIOException - if an I/O exception occurs while reading