src/share/classes/javax/sound/midi/Receiver.java

Print this page

        

@@ -36,11 +36,11 @@
  * @see Synthesizer
  * @see Transmitter
  *
  * @author Kara Kytle
  */
-public interface Receiver {
+public interface Receiver extends AutoCloseable {
 
 
     //$$fb 2002-04-12: fix for 4662090: Contradiction in Receiver specification
     /**
      * Sends a MIDI message and time-stamp to this receiver.