Lines Matching refs:length
39 if (data.length==0 || (((data[0] & 0xFF) != 0xF0) && ((data[0] & 0xFF) != 0xF7))) {
40 super.setMessage(data, data.length); // will throw Exception
46 * Use getLength() to get the real length of the message.
54 public void setMessage(byte[] data, int length) throws InvalidMidiDataException {
55 if ((data.length == 0) || (((data[0] & 0xFF) != 0xF0) && ((data[0] & 0xFF) != 0xF7))) {
56 super.setMessage(data, data.length); // will throw Exception
58 this.length = length;
59 this.data = new byte[this.length];
60 System.arraycopy(data, 0, this.data, 0, length);