byte [] delay_array = int2ByteArray(delay); byte [] width_array = int2ByteArray(width); byte [] height_array = int2ByteArray(height);
byte [] delay_array = ArrayManipulator.int2ByteArray(delay); byte [] width_array = ArrayManipulator.int2ByteArray(width); byte [] height_array = ArrayManipulator.int2ByteArray(height);
    public static byte[] createNegoDatagram(int file_index, short opcode, int delay, int width, int height)	throws InvalidParameterException    {	//creation	if(!Opcode.isNego(opcode)) throw new InvalidParameterException("opcode isn't a correct value");	byte datagram[] = UDPDatagramHeader.createUDPDatagramHeader(file_index, opcode, 18);	byte [] delay_array = int2ByteArray(delay);	byte [] width_array = int2ByteArray(width);	byte [] height_array = int2ByteArray(height);	int i;	//initialisation	for(i=0; i<4; i++)	    datagram[i+6] = delay_array[i];	for(i=0; i<4; i++)	    datagram[i+10] = width_array[i];	for(i=0; i<4; i++)	    datagram[i+14] = height_array[i];	return datagram;    }