Package org.jjazz.midi.spi
Interface MidiSynthFileReader
- All Known Implementing Classes:
CakewalkInsFileReader
public interface MidiSynthFileReader
A reader of MidiSynths.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Must be unique amongst MidiSynthProviders.static MidiSynthFileReader
Get the first reader which can read the specified file extension.Get the list of file types accepted by this provider.readSynthsFromStream
(InputStream in, File f) Get synth(s) from an input stream.
-
Method Details
-
getReader
Get the first reader which can read the specified file extension.- Parameters:
fileExtension
- For example "ins"- Returns:
-
getId
String getId()Must be unique amongst MidiSynthProviders.- Returns:
-
getSupportedFileTypes
List<FileNameExtensionFilter> getSupportedFileTypes()Get the list of file types accepted by this provider.- Returns:
-
readSynthsFromStream
Get synth(s) from an input stream.Returned synths must have at least one InstrumentBank. InstrumentBanks can't be empty.
- Parameters:
in
-f
- Needed for error messages and logging. Can be null.- Returns:
- Can be an empty list if no synth could be created.
- Throws:
IOException
-