javax.sound.midi

Class SoundbankResource

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 ObjectgetData()
Get the audio data for this resource.
Class<?>getDataClass()
Get the class used to represent the audio data for this resource.
StringgetName()
Get the name of this resource.
SoundbankgetSoundbank()
Get the sound bank containing this resource.

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

getData

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

Returns: the audio data object for 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

getName

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

Returns: the name of this resource

getSoundbank

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

Returns: the sound bank in which this resource resides