< prev index next >

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

Print this page




  49      * @throws IllegalStateException if the receiver is closed
  50      */
  51     void send(MidiMessage message, long timeStamp);
  52 
  53     /**
  54      * Indicates that the application has finished using the receiver, and that
  55      * limited resources it requires may be released or made available.
  56      * <p>
  57      * If the creation of this {@code Receiver} resulted in implicitly opening
  58      * the underlying device, the device is implicitly closed by this method.
  59      * This is true unless the device is kept open by other {@code Receiver} or
  60      * {@code Transmitter} instances that opened the device implicitly, and
  61      * unless the device has been opened explicitly. If the device this
  62      * {@code Receiver} is retrieved from is closed explicitly by calling
  63      * {@link MidiDevice#close MidiDevice.close}, the {@code Receiver} is
  64      * closed, too. For a detailed description of open/close behaviour see the
  65      * class description of {@link MidiDevice MidiDevice}.
  66      *
  67      * @see javax.sound.midi.MidiSystem#getReceiver
  68      */

  69     void close();
  70 }


  49      * @throws IllegalStateException if the receiver is closed
  50      */
  51     void send(MidiMessage message, long timeStamp);
  52 
  53     /**
  54      * Indicates that the application has finished using the receiver, and that
  55      * limited resources it requires may be released or made available.
  56      * <p>
  57      * If the creation of this {@code Receiver} resulted in implicitly opening
  58      * the underlying device, the device is implicitly closed by this method.
  59      * This is true unless the device is kept open by other {@code Receiver} or
  60      * {@code Transmitter} instances that opened the device implicitly, and
  61      * unless the device has been opened explicitly. If the device this
  62      * {@code Receiver} is retrieved from is closed explicitly by calling
  63      * {@link MidiDevice#close MidiDevice.close}, the {@code Receiver} is
  64      * closed, too. For a detailed description of open/close behaviour see the
  65      * class description of {@link MidiDevice MidiDevice}.
  66      *
  67      * @see javax.sound.midi.MidiSystem#getReceiver
  68      */
  69     @Override
  70     void close();
  71 }
< prev index next >