public IP4(int t1, int t2, int t3, int t4) throws MalformedIPException {

		StringBuffer errorMessage = new StringBuffer("");

		if ((t1 < 1) || (t1 > 254))
			errorMessage.append(
				"tuple1 is malformed. Must be between 2 and 254.\n");

		if ((t2 < 1) || (t2 > 254))
			errorMessage.append(
				"tuple2 is malformed. Must be between 2 and 254.\n");

		if ((t3 < 1) || (t3 > 254))
			errorMessage.append(
				"tuple3 is malformed. Must be between 2 and 254.\n");

		if ((t4 < 1) || (t4 > 254))
			errorMessage.append(
				"tuple4 is malformed. Must be between 2 and 254.\n");

		if(!errorMessage.equals(""))
			throw new MalformedIPException(errorMessage.toString() );

		setTuple1(t1);

		setTuple2(t2);

		setTuple3(t3);

		setTuple4(t4);

	}