public abstract class SoundbankReader extends Object
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.| Modifier | Constructor | Description |
|---|---|---|
protected |
Constructor for subclasses to call. |
| Modifier and Type | Method | Description |
|---|---|---|
abstract Soundbank |
getSoundbank |
Obtains a soundbank object from the File provided. |
abstract Soundbank |
getSoundbank |
Obtains a soundbank object from the InputStream provided. |
abstract Soundbank |
getSoundbank |
Obtains a soundbank object from the URL provided. |
protected SoundbankReader()
public abstract Soundbank getSoundbank(URL url) throws InvalidMidiDataException, IOException
URL provided.url - URL representing the soundbankInvalidMidiDataException - if the URL does not point to valid MIDI soundbank data recognized by this soundbank readerIOException - if an I/O error occursNullPointerException - if url is null
public abstract Soundbank getSoundbank(InputStream stream) throws InvalidMidiDataException, IOException
InputStream provided.stream - InputStream representing the soundbankInvalidMidiDataException - if the stream does not point to valid MIDI soundbank data recognized by this soundbank readerIOException - if an I/O error occursNullPointerException - if stream is null
public abstract Soundbank getSoundbank(File file) throws InvalidMidiDataException, IOException
File provided.file - the File representing the soundbankInvalidMidiDataException - if the file does not point to valid MIDI soundbank data recognized by this soundbank readerIOException - if an I/O error occursNullPointerException - if file is null
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/sound/midi/spi/SoundbankReader.html