IOExceptions occurring during the iteration are wrapped in a - * RuntimeException. - * If the parser is closed a call to {@code next()} will throw a - * NoSuchElementException.
+ *+ * An {@link IOException} caught during the iteration are re-thrown as an + * {@link IllegalStateException}. + *
+ *+ * If the parser is closed a call to {@link Iterator#next()} will throw a + * {@link NoSuchElementException}. + *
*/ @Override public Iterator