public abstract class MidiFileReader extends Object
Constructor and Description |
---|
MidiFileReader() |
Modifier and Type | Method and Description |
---|---|
abstract MidiFileFormat |
getMidiFileFormat(File file)
Get the
MidiFileFormat from the specified file |
abstract MidiFileFormat |
getMidiFileFormat(InputStream stream)
Get the
MidiFileFormat from the specified stream |
abstract MidiFileFormat |
getMidiFileFormat(URL url)
Get the
MidiFileFormat from the specified URL |
abstract Sequence |
getSequence(File file)
Get the
Sequence from the specified file |
abstract Sequence |
getSequence(InputStream stream)
Get the
Sequence from the specified stream |
abstract Sequence |
getSequence(URL url)
Get the
Sequence from the specified URL |
@NonNull public abstract MidiFileFormat getMidiFileFormat(@NonNull File file) throws InvalidMidiDataException, IOException
MidiFileFormat
from the specified filefile
- the fileInvalidMidiDataException
IOException
@NonNull public abstract MidiFileFormat getMidiFileFormat(@NonNull InputStream stream) throws InvalidMidiDataException, IOException
MidiFileFormat
from the specified streamstream
- the InputStreamInvalidMidiDataException
IOException
@NonNull public abstract MidiFileFormat getMidiFileFormat(@NonNull URL url) throws InvalidMidiDataException, IOException
MidiFileFormat
from the specified URLurl
- the URLInvalidMidiDataException
IOException
@NonNull public abstract Sequence getSequence(@NonNull File file) throws InvalidMidiDataException, IOException
Sequence
from the specified filefile
- the fileInvalidMidiDataException
IOException
@NonNull public abstract Sequence getSequence(@NonNull InputStream stream) throws InvalidMidiDataException, IOException
Sequence
from the specified streamstream
- the InputStreamInvalidMidiDataException
IOException
@NonNull public abstract Sequence getSequence(@NonNull URL url) throws InvalidMidiDataException, IOException
Sequence
from the specified URLurl
- the URLInvalidMidiDataException
IOException