javax.sound.midi

Interface Transmitter

public interface Transmitter

This interface specifies the methods required by objects which send MIDI events to Receivers, including MIDI IN ports and Sequencers.

Since: 1.3

Method Summary
voidclose()
Close this Transmitter, possibly releasing system resources.
ReceivergetReceiver()
Get the Receiver to which MIDI events will be sent (possibly null)
voidsetReceiver(Receiver receiver)
Set the Receiver to which MIDI events will be sent.

Method Detail

close

public void close()
Close this Transmitter, possibly releasing system resources. FIXME: Does this mean the Receiver is closed? I think it must.

getReceiver

public Receiver getReceiver()
Get the Receiver to which MIDI events will be sent (possibly null)

Returns: the Receiver to which MIDI events will be sent (possibly null)

setReceiver

public void setReceiver(Receiver receiver)
Set the Receiver to which MIDI events will be sent.

Parameters: receiver the Receiver to which MIDI events will be sent