public interface Transmitter extends AutoCloseable
Receiver
Modifier and Type | Method and Description |
---|---|
void |
close()
表示应用程序已完成使用发射机,并且其所需的有限资源可能会被释放或提供。
|
Receiver |
getReceiver()
获取此发送器将传送MIDI消息的当前接收器。
|
void |
setReceiver(Receiver receiver)
设置发送器将传送MIDI信息的接收器。
|
void setReceiver(Receiver receiver)
receiver
- 所需的接收器。
Receiver getReceiver()
null
void close()
如果创建此Transmitter
导致隐式打开底层设备,则该方法将隐式关闭该设备。 这是真的,除非设备被其他Receiver
或Transmitter
隐式打开设备的实例保持打开,除非设备已经被明确打开。 如果Transmitter
被检索到的设备通过致电MidiDevice.close
Transmitter
关闭,那么Transmitter
也被关闭。 有关开/关行为的详细说明,请参阅MidiDevice
的类描述 。
close
在界面
AutoCloseable
MidiSystem.getTransmitter()
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.