javax.sound.midi
Class SoundbankResource

java.lang.Object
  extended by javax.sound.midi.SoundbankResource
Direct Known Subclasses:
Instrument

public abstract class SoundbankResource
extends Object

SoundbankResource objects represent audio data stored in a sound bank.

Since:
1.3

Constructor Summary
protected SoundbankResource(Soundbank soundbank, String name, Class<?> dataClass)
          Create a SoundbankResource object.
 
Method Summary
abstract  Object getData()
          Get the audio data for this resource.
 Class<?> getDataClass()
          Get the class used to represent the audio data for this resource.
 String getName()
          Get the name of this resource.
 Soundbank getSoundbank()
          Get the sound bank containing this resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundbankResource

protected SoundbankResource(Soundbank soundbank,
                            String name,
                            Class<?> dataClass)
Create a SoundbankResource object.

Parameters:
soundbank - the soundbank object containing this resource
name - the name of the resource
dataClass - the class used to represent the audio data
Method Detail

getSoundbank

public Soundbank getSoundbank()
Get the sound bank containing this resource.

Returns:
the sound bank in which this resource resides

getName

public String getName()
Get the name of this resource.

Returns:
the name of this resource

getDataClass

public Class<?> getDataClass()
Get the class used to represent the audio data for this resource.

Returns:
the class used to represent the audio data for this resource

getData

public abstract Object getData()
Get the audio data for this resource.

Returns:
the audio data object for this resource