javax.sound.midi
public abstract class MidiMessage extends Object implements Cloneable
Since: 1.3
Field Summary | |
---|---|
protected byte[] | data
MIDI message data. |
protected int | length
The total length of the MIDI message. |
Constructor Summary | |
---|---|
protected | MidiMessage(byte[] data)
MidiMessage contructor.
|
Method Summary | |
---|---|
abstract Object | clone() |
int | getLength()
Get the length of the MIDI message.
|
byte[] | getMessage()
Get the MIDI message data.
|
int | getStatus()
Get the status byte of the MIDI message (as an int)
|
protected void | setMessage(byte[] data, int length)
Set the complete MIDI message.
|
Parameters: data a valid MIDI message
Returns: the length of the MIDI messsage
Returns: an array containing the MIDI message data
Returns: the status byte of the MIDI message (as an int), or zero if the message length is zero.
Parameters: data The complete MIDI message. length The length of the MIDI message.
Throws: InvalidMidiDataException Thrown when the MIDI message is invalid.