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
.
public SoundbankReader()
public abstract Soundbank getSoundbank(URL url) throws InvalidMidiDataException, IOException
Obtains a soundbank object from the URL provided.
url
- URL representing the soundbank.InvalidMidiDataException
- if the URL does not point to valid MIDI soundbank data recognized by this soundbank readerIOException
- if an I/O error occurspublic abstract Soundbank getSoundbank(InputStream stream) throws InvalidMidiDataException, IOException
Obtains a soundbank object from the 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 occurspublic abstract Soundbank getSoundbank(File file) throws InvalidMidiDataException, IOException
Obtains a soundbank object from the 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 occurs
© 1993–2017, 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.