|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.6.0
javax.sound.midi
|
|||||||||||||||||||||||||||||||
| Field Summary | |
|---|---|
static int |
SPECIAL_SYSTEM_EXCLUSIVE
Status byte for Special System Exclusive message (0xF7, or 247), which is used in MIDI files. |
static int |
SYSTEM_EXCLUSIVE
Status byte for System Exclusive message (0xF0, or 240). |
| Fields inherited from class javax.sound.midi.MidiMessage |
|---|
data, length |
| Constructor Summary | |
|---|---|
|
SysexMessage()
Constructs a new SysexMessage. |
protected |
SysexMessage(byte[] data)
Constructs a new SysexMessage. |
| Method Summary | |
|---|---|
Object |
clone()
Creates a new object of the same class and with the same contents as this object. |
byte[] |
getData()
Obtains a copy of the data for the system exclusive message. |
void |
setMessage(byte[] data,
int length)
Sets the data for the system exclusive message. |
void |
setMessage(int status,
byte[] data,
int length)
Sets the data for the system exclusive 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
MidiMessage.getStatus(),
Constant Field Valuespublic static final int SPECIAL_SYSTEM_EXCLUSIVE
MidiMessage.getStatus(),
Constant Field Values| Constructor Detail |
|---|
public SysexMessage()
SysexMessage. The
contents of the new message are guaranteed to specify
a valid MIDI message. Subsequently, you may set the
contents of the message using one of the setMessage
methods.
setMessage(byte[], int)protected SysexMessage(byte[] data)
SysexMessage.
data - an array of bytes containing the complete message.
The message data may be changed using the setMessage
method.setMessage(byte[], int)| Method Detail |
|---|
public void setMessage(byte[] data,
int length)
throws InvalidMidiDataException
setMessage in class MidiMessagedata - the system exclusive message datalength - the length of the valid message data in
the array, including the status byte.
InvalidMidiDataException
public void setMessage(int status,
byte[] data,
int length)
throws InvalidMidiDataException
status - the status byte for the message (0xF0 or 0xF7)data - the system exclusive message datalength - the length of the valid message data in
the array
InvalidMidiDataExceptionpublic byte[] getData()
public Object clone()
clone in class MidiMessageCloneable