public void writeInt(OutputStream s, int i) {
		int b1, b2, b3, b4;

		b1 = i & 0x000000FF;
		b2 = (i & 0x0000FF00) >> 8;
		b3 = (i & 0x00FF0000) >> 16;
		b4 = (i & 0xFF000000) >> 24;

		try {
			s.write(b1);
			s.write(b2);
			s.write(b3);
			s.write(b4);
		} catch (IOException e) {

		}
	}