public void
getEOL() throws IOException {
	Token next = get();
	if (next.type != EOL && next.type != EOF) {
		throw exception("expected EOL or EOF");
	}
}
Gets the next token from a tokenizer, which must be an EOL or EOF.
@throws TextParseException The input was invalid or not an EOL or EOF token.
@throws IOException An I/O error occurred.
src/main/java/core/org/xbill/DNS/Tokenizer.java