javax.sound.midi.spi

Class MidiDeviceProvider

public abstract class MidiDeviceProvider extends Object

The abstract base class for all MidiDeviceProvider types.

Since: 1.3

Method Summary
abstract MidiDevicegetDevice(MidiDevice.Info info)
Get the MidiDevice for the MIDI device described by info
abstract MidiDevice.Info[]getDeviceInfo()
Get the list descriptors for all MIDI devices supported by this provider.
booleanisDeviceSupported(MidiDevice.Info info)
Returns true if this provider supports a specific MIDI device.

Method Detail

getDevice

public abstract MidiDevice getDevice(MidiDevice.Info info)
Get the MidiDevice for the MIDI device described by info

Parameters: info the descriptor for the MIDI device we want

Returns: the MidiDevice we're looking for

Throws: IllegalArgumentException is this provider doesn't support info

getDeviceInfo

public abstract MidiDevice.Info[] getDeviceInfo()
Get the list descriptors for all MIDI devices supported by this provider.

Returns: an array of descriptors for all supported MIDI devices.

isDeviceSupported

public boolean isDeviceSupported(MidiDevice.Info info)
Returns true if this provider supports a specific MIDI device.

Parameters: info the MIDI device descriptor

Returns: true if this provider supports info