src/jpm/dg/Util.java
/**
	 * Converts a packed integer array to a byte array.
	 * 
	 * @param array
	 *            The integer array.
	 * @return A byte array of three times the size containing the unpacked
	 *         numbers.
	 */
Converts a packed integer array to a byte array.

@param array
The integer array.
@return A byte array of three times the size containing the unpacked
numbers.
Converts a packed integer array to a byte array . @param array The integer array . @return A byte array of three times the size containing the unpacked numbers .
public static byte[] convertArray(int[] array) {
		byte[] newarray = new byte[array.length * 3];
		for (int i = 0; i < array.length; i++) {
			newarray[i * 3] = (byte) ((array[i] >> 16) & 0xFF);
			newarray[i * 3 + 1] = (byte) ((array[i] >> 8) & 0xFF);
			newarray[i * 3 + 2] = (byte) ((array[i]) & 0xFF);
		}
		return newarray;
	}
public static byte [ ] convertArray ( int [ ] array ) { byte [ ] newarray = new byte [ array . length * 3 ] ; for ( int i = 0 ; i < array . length ; i ++ ) { newarray [ i * 3 ] = ( byte ) ( ( array [ i ] >> 16 ) & 0xFF ) ; newarray [ i * 3 + 1 ] = ( byte ) ( ( array [ i ] >> 8 ) & 0xFF ) ; newarray [ i * 3 + 2 ] = ( byte ) ( ( array [ i ] ) & 0xFF ) ; } return newarray ; }
Converts a packed integer array to a byte array.
Converts a packed integer array to a byte array .