public interface Receiver extends AutoCloseable
Receiver接收到MidiEventMidiDevice , Synthesizer , Transmitter 
       | Modifier and Type | Method and Description | 
|---|---|
| void | close()
              表示应用程序已完成使用接收器,并且其所需的有限资源可能会被释放或提供。 
             | 
| void | send(MidiMessage message, long timeStamp)
              向此接收器发送MIDI消息和时间戳。 
             | 
void send(MidiMessage message, long timeStamp)
message - 要发送的MIDI信息 
           timeStamp - 消息的时间戳,以微秒为单位。 
           IllegalStateException - 如果接收器关闭 
           void close()
 如果创建此Receiver导致隐式打开底层设备,则该方法将隐式关闭该设备。 这是真的,除非设备被其他Receiver或Transmitter隐式打开设备的实例保持打开,除非设备已被明确打开。 如果这个Receiver被检索的设备通过调用MidiDevice.close Receiver式关闭,那么Receiver也被关闭。 有关开/关行为的详细说明,请参阅MidiDevice的类描述 。 
close在界面 
            AutoCloseable 
           MidiSystem.getReceiver() 
            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.