code: public static int fourCC(String ChunkName)
  	{
  		byte[] p =
  		{
  				0x20, 0x20, 0x20, 0x20
  		};
  		System.arraycopy(ChunkName.getBytes(), 0, p, 0, 4);
  		int ret = (((p[0] << 24) & 0xFF000000) | ((p[1] << 16) & 0x00FF0000) | ((p[2] << 8) & 0x0000FF00) | (p[3] & 0x000000FF));
  		return ret;
  	}
docs: Fill the header.