Top Description Inners Fields Constructors Methods
com.sun.media.sound

public final Class MidiInDeviceProvider

extends AbstractMidiDeviceProvider
Class Inheritance
Imports
javax.sound.midi.MidiDevice

MIDI input device provider.
Authors
Kara Kytle, Florian Bomers

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
MidiInDeviceProvider.MidiInDeviceInfo

Info class for MidiInDevices.

Field Summary

Modifier and TypeField and Description
private static MidiDevice[]
devices

Cache of open MIDI input devices on the system.

private static final boolean
private static AbstractMidiDeviceProvider.Info[]
infos

Cache of info objects for all MIDI output devices on the system.

Constructor Summary

AccessConstructor and Description
public
MidiInDeviceProvider()

Required public no-arg constructor.

Method Summary

Modifier and TypeMethod and Description
pack-priv MidiDevice
pack-priv AbstractMidiDeviceProvider.Info
pack-priv MidiDevice[]
pack-priv AbstractMidiDeviceProvider.Info[]
pack-priv int
private static native String
nGetDescription(int index)

private static native String
nGetName(int index)

private static native int
private static native String
nGetVendor(int index)

private static native String
nGetVersion(int index)

pack-priv void
pack-priv void
Inherited from com.sun.media.sound.AbstractMidiDeviceProvider:
getDevicegetDeviceInforeadDeviceInfos

Field Detail

devicesback to summary
private static MidiDevice[] devices

Cache of open MIDI input devices on the system.

enabledback to summary
private static final boolean enabled

Hides com.sun.media.sound.AbstractMidiDeviceProvider.enabled.

infosback to summary
private static AbstractMidiDeviceProvider.Info[] infos

Cache of info objects for all MIDI output devices on the system.

Constructor Detail

MidiInDeviceProviderback to summary
public MidiInDeviceProvider()

Required public no-arg constructor.

Method Detail

createDeviceback to summary
pack-priv MidiDevice createDevice(AbstractMidiDeviceProvider.Info info)

Implements abstract com.sun.media.sound.AbstractMidiDeviceProvider.createDevice.

Annotations
@Override
createInfoback to summary
pack-priv AbstractMidiDeviceProvider.Info createInfo(int index)

Implements abstract com.sun.media.sound.AbstractMidiDeviceProvider.createInfo.

Annotations
@Override
getDeviceCacheback to summary
pack-priv MidiDevice[] getDeviceCache()

Implements abstract com.sun.media.sound.AbstractMidiDeviceProvider.getDeviceCache.

Annotations
@Override
getInfoCacheback to summary
pack-priv AbstractMidiDeviceProvider.Info[] getInfoCache()

Implements abstract com.sun.media.sound.AbstractMidiDeviceProvider.getInfoCache.

Annotations
@Override
getNumDevicesback to summary
pack-priv int getNumDevices()

Implements abstract com.sun.media.sound.AbstractMidiDeviceProvider.getNumDevices.

Annotations
@Override
nGetDescriptionback to summary
private static native String nGetDescription(int index)
nGetNameback to summary
private static native String nGetName(int index)
nGetNumDevicesback to summary
private static native int nGetNumDevices()
nGetVendorback to summary
private static native String nGetVendor(int index)
nGetVersionback to summary
private static native String nGetVersion(int index)
setDeviceCacheback to summary
pack-priv void setDeviceCache(MidiDevice[] devices)

Implements abstract com.sun.media.sound.AbstractMidiDeviceProvider.setDeviceCache.

Annotations
@Override
setInfoCacheback to summary
pack-priv void setInfoCache(AbstractMidiDeviceProvider.Info[] infos)

Implements abstract com.sun.media.sound.AbstractMidiDeviceProvider.setInfoCache.

Annotations
@Override
com.sun.media.sound back to summary

pack-priv final Class MidiInDeviceProvider.MidiInDeviceInfo

extends Info
Class Inheritance

Info class for MidiInDevices. Adds the provider's Class to keep the provider class from being unloaded. Otherwise, at least on JDK1.1.7 and 1.1.8, the provider class can be unloaded. Then, then the provider is next invoked, the static block is executed again and a new instance of the device object is created. Even though the previous instance may still exist and be open / in use / etc., the new instance will not reflect that state...

Field Summary

Modifier and TypeField and Description
private final Class<?>

Constructor Summary

AccessConstructor and Description
private
MidiInDeviceInfo(int index, Class<?> providerClass)

Method Summary

Inherited from com.sun.media.sound.AbstractMidiDeviceProvider.Info:
equalStringsgetIndexsetIndex

Field Detail

providerClassback to summary
private final Class<?> providerClass

Constructor Detail

MidiInDeviceInfoback to summary
private MidiInDeviceInfo(int index, Class<?> providerClass)