javax.sound.midi.spi
Class SoundbankReader

java.lang.Object
  extended by javax.sound.midi.spi.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

Constructor Summary
SoundbankReader()
           
 
Method Summary
abstract  Soundbank getSoundbank(File file)
          Get a Soundbank from the given File.
abstract  Soundbank getSoundbank(InputStream stream)
          Get a Soundbank from the given InputStream.
abstract  Soundbank getSoundbank(URL url)
          Get a Soundbank from the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundbankReader

public SoundbankReader()
Method Detail

getSoundbank

public abstract Soundbank getSoundbank(URL url)
                                throws InvalidMidiDataException,
                                       IOException
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)
                                throws InvalidMidiDataException,
                                       IOException
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)
                                throws InvalidMidiDataException,
                                       IOException
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