public abstract class MidiDeviceProvider extends Object
MidiDeviceProvider
是工厂或供应商的特定类型的MIDI设备。这种机制允许实现,以确定如何管理资源的创建和管理的设备。
Constructor and Description |
---|
MidiDeviceProvider() |
Modifier and Type | Method and Description |
---|---|
abstract MidiDevice |
getDevice(MidiDevice.Info info)
获取由信息对象表示的设备的实例。
|
abstract MidiDevice.Info[] |
getDeviceInfo()
得到这个
MidiDeviceProvider 代表提供的设备或设备信息的对象集。
|
boolean |
isDeviceSupported(MidiDevice.Info info)
指示设备提供程序是否支持由指定的设备信息对象表示的设备。
|
public boolean isDeviceSupported(MidiDevice.Info info)
info
,描述了设备支持的是查询信息对象
true
如果指定的设备支持,否则
false
public abstract MidiDevice.Info[] getDeviceInfo()
MidiDeviceProvider
代表提供的设备或设备信息的对象集。
public abstract MidiDevice getDevice(MidiDevice.Info info)
info
-描述所需的设备信息对象
IllegalArgumentException
-如果指定的信息对象不匹配,这
MidiDeviceProvider
所支持的设备的信息对象。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.