public byte []
getHex(boolean required) throws IOException {
	String s = remainingStrings();
	if (s == null) {
		if (required)
			throw exception("expected hex encoded string");
		else
			return null;
	}
	byte [] array = base16.fromString(s);
	if (array == null)
		throw exception("invalid hex encoding");
	return array;
}
Gets the remaining string tokens until an EOL/EOF is seen, concatenates
them together, and converts the hex encoded data to a byte array.
@param required If true, an exception will be thrown if no strings remain;
otherwise null be be returned.
@return The byte array containing the decoded strings, or null if there
were no strings to decode.
@throws TextParseException The input was invalid.
@throws IOException An I/O error occurred.
src/main/java/core/org/xbill/DNS/Tokenizer.java