javax.sound.midi.spi

Class SoundbankReader

public abstract class SoundbankReader extends Object

The SoundbankReader abstract class defines the methods to be provided by a soundbank file reader.

Since: 1.3

Method Summary
abstract SoundbankgetSoundbank(URL url)
Get a Soundbank from the given URL.
abstract SoundbankgetSoundbank(InputStream stream)
Get a Soundbank from the given InputStream.
abstract SoundbankgetSoundbank(File file)
Get a Soundbank from the given File.

Method Detail

getSoundbank

public abstract Soundbank getSoundbank(URL url)
Get a Soundbank from the given URL.

Parameters: url from which to read the Soundbank

Returns: the Soundbank object

Throws: InvalidMidiDataException if the data provided by url cannot be recognized IOException if the data provided by url cannot be read

getSoundbank

public abstract Soundbank getSoundbank(InputStream stream)
Get a Soundbank from the given InputStream.

Parameters: stream from which to read the Soundbank

Returns: the Soundbank object

Throws: InvalidMidiDataException if the data provided by InputStream cannot be recognized IOException if the data provided by InputStream cannot be read

getSoundbank

public abstract Soundbank getSoundbank(File file)
Get a Soundbank from the given File.

Parameters: file from which to read the Soundbank

Returns: the Soundbank object

Throws: InvalidMidiDataException if the data provided by File cannot be recognized IOException if the data provided by File cannot be read