- java.lang.Object
- 
- javax.sound.midi.spi.SoundbankReader
 
- 
 public abstract class SoundbankReader extends Object ASoundbankReadersupplies soundbank file-reading services. Concrete subclasses ofSoundbankReaderparse a given soundbank file, producing aSoundbankobject that can be loaded into aSynthesizer.- Since:
- 1.3
 
- 
- 
Constructor SummaryConstructors Constructor Description SoundbankReader()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SoundbankgetSoundbank(File file)Obtains a soundbank object from theFileprovided.abstract SoundbankgetSoundbank(InputStream stream)Obtains a soundbank object from theInputStreamprovided.abstract SoundbankgetSoundbank(URL url)Obtains a soundbank object from theURLprovided.
 
- 
- 
- 
Method Detail- 
getSoundbankpublic abstract Soundbank getSoundbank(URL url) throws InvalidMidiDataException, IOException Obtains a soundbank object from theURLprovided.- Parameters:
- url-- URLrepresenting the soundbank
- Returns:
- soundbank object
- Throws:
- InvalidMidiDataException- if the- URLdoes not point to valid MIDI soundbank data recognized by this soundbank reader
- IOException- if an I/O error occurs
- NullPointerException- if- urlis- null
 
 - 
getSoundbankpublic abstract Soundbank getSoundbank(InputStream stream) throws InvalidMidiDataException, IOException Obtains a soundbank object from theInputStreamprovided.- Parameters:
- stream-- InputStreamrepresenting the soundbank
- Returns:
- soundbank object
- Throws:
- InvalidMidiDataException- if the stream does not point to valid MIDI soundbank data recognized by this soundbank reader
- IOException- if an I/O error occurs
- NullPointerException- if- streamis- null
 
 - 
getSoundbankpublic abstract Soundbank getSoundbank(File file) throws InvalidMidiDataException, IOException Obtains a soundbank object from theFileprovided.- Parameters:
- file- the- Filerepresenting the soundbank
- Returns:
- soundbank object
- Throws:
- InvalidMidiDataException- if the file does not point to valid MIDI soundbank data recognized by this soundbank reader
- IOException- if an I/O error occurs
- NullPointerException- if- fileis- null
 
 
- 
 
-