- 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 Summary
Constructors Constructor Description SoundbankReader() 
- 
Method Summary
All 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
- 
getSoundbank
public 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 theURLdoes not point to valid MIDI soundbank data recognized by this soundbank readerIOException- if an I/O error occursNullPointerException- ifurlisnull
 
- 
getSoundbank
public 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 readerIOException- if an I/O error occursNullPointerException- ifstreamisnull
 
- 
getSoundbank
public abstract Soundbank getSoundbank(File file) throws InvalidMidiDataException, IOException
Obtains a soundbank object from theFileprovided.- Parameters:
 file- theFilerepresenting the soundbank- Returns:
 - soundbank object
 - Throws:
 InvalidMidiDataException- if the file does not point to valid MIDI soundbank data recognized by this soundbank readerIOException- if an I/O error occursNullPointerException- iffileisnull
 
 - 
 
 -