java.lang.Object
javax.sound.midi.spi.SoundbankReader
public abstract class SoundbankReader extends Object
A 
SoundbankReader supplies soundbank file-reading services. Concrete
 subclasses of SoundbankReader parse a given soundbank file, producing
 a Soundbank object that can be loaded into a Synthesizer.- Since:
- 1.3
- 
Constructor SummaryConstructors Constructor Description SoundbankReader()
- 
Method SummaryModifier 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.
- 
Constructor Details- 
SoundbankReaderpublic SoundbankReader()
 
- 
- 
Method Details- 
getSoundbankObtains 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, IOExceptionObtains 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
 
- 
getSoundbankObtains 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
 
 
-