public static void
check(int val) {
	if (val < 0 || val > 0xFFFF)
		throw new InvalidTypeException(val);
}
Checks that a numeric Type is valid.
@throws InvalidTypeException The type is out of range.
src/main/java/core/org/xbill/DNS/Type.java