if ((length < 0) || (length > data.length)) {
// sound.03=length out of bounds: {0}
throw new IndexOutOfBoundsException(Messages.getString("sound.03", length)); //$NON-NLS-1$
}
this.data = new byte[length];
if (length != 0) {
for (int i = 0; i < length; i++) {
this.data[i] = data[i];
}
}
this.length = length;