|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.sound.midi.MidiMessage
javax.sound.midi.SysexMessage
public class SysexMessage
A system exclusive MIDI message.
| Field Summary | |
|---|---|
static int |
SPECIAL_SYSTEM_EXCLUSIVE
|
static int |
SYSTEM_EXCLUSIVE
|
| Fields inherited from class javax.sound.midi.MidiMessage |
|---|
data, length |
| Constructor Summary | |
|---|---|
|
SysexMessage()
Create a default valid system exclusive message. |
protected |
SysexMessage(byte[] data)
Create a SysexMessage object. |
| Method Summary | |
|---|---|
Object |
clone()
clone creates a shallow clone of this. |
byte[] |
getData()
Get the data for this message, not including the status byte. |
void |
setMessage(byte[] data,
int length)
Set the sysex message. |
void |
setMessage(int status,
byte[] data,
int length)
Set the sysex message. |
| Methods inherited from class javax.sound.midi.MidiMessage |
|---|
getLength, getMessage, getStatus |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SYSTEM_EXCLUSIVE
public static final int SPECIAL_SYSTEM_EXCLUSIVE
| Constructor Detail |
|---|
public SysexMessage()
protected SysexMessage(byte[] data)
data - a complete system exclusive message| Method Detail |
|---|
public void setMessage(byte[] data,
int length)
throws InvalidMidiDataException
setMessage in class MidiMessagedata - the message datalength - the length of the message data
InvalidMidiDataException - if the status byte is not 0xF0 or 0xF7
public void setMessage(int status,
byte[] data,
int length)
throws InvalidMidiDataException
status - the sysex statys byte (0xF0 or 0xF7)data - the message datalength - the length of the message data
InvalidMidiDataException - if status is not 0xF0 or 0xF7public byte[] getData()
public Object clone()
Object
clone in class MidiMessage
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||