src/com/shrewdify/diaroser/utils/ElementParser.java
public byte[] merge(byte[] buf, byte[] temp) {
		byte spack[] = new byte[buf.length + temp.length];
		for (int i = 0; i < temp.length; i++)
			spack[i] = temp[i];
		for (int i = 0; i < buf.length; i++)
			spack[i + temp.length] = buf[i];
		byte t[] = int32ToBytes(spack.length);
		for (int i = 0; i < 3; i++)
			spack[i + 1] = t[i + 1];
		spack[4] = 0;
		return spack;
	}
/**
	 * 
	 * @param buf
	 * @param temp
	 * @return
	 * 
	 * It merges both the arrays and repalces the Header information.
	 */
@param buf
@param temp
@return

It merges both the arrays and repalces the Header information.
@param buf @param temp @return It merges both the arrays and repalces the Header information .
public byte[] merge(byte[] buf, byte[] temp) {
		byte spack[] = new byte[buf.length + temp.length];
		for (int i = 0; i < temp.length; i++)
			spack[i] = temp[i];
		for (int i = 0; i < buf.length; i++)
			spack[i + temp.length] = buf[i];
		byte t[] = int32ToBytes(spack.length);
		for (int i = 0; i < 3; i++)
			spack[i + 1] = t[i + 1];
		spack[4] = 0;
		return spack;
	}
public byte [ ] merge ( byte [ ] buf , byte [ ] temp ) { byte spack [ ] = new byte [ buf . length + temp . length ] ; for ( int i = 0 ; i < temp . length ; i ++ ) spack [ i ] = temp [ i ] ; for ( int i = 0 ; i < buf . length ; i ++ ) spack [ i + temp . length ] = buf [ i ] ; byte t [ ] = int32ToBytes ( spack . length ) ; for ( int i = 0 ; i < 3 ; i ++ ) spack [ i + 1 ] = t [ i + 1 ] ; spack [ 4 ] = 0 ; return spack ; }
@param buf
 @param temp
 @return
@param buf @param temp @return