LineIterator documentation
---------------------------
Key: IO-180
URL: https://issues.apache.org/jira/browse/IO-180
Project: Commons IO
Issue Type: Bug
Affects Versions: 1.4
Reporter: Michael Ernst
Priority: Minor
In the Javadoc for rg.apache.commons.io.LineIterator (in Commons IO 1.4),
this code snippet is incorrect: the last instance of "iterator" should be
"it".
LineIterator it = FileUtils.lineIterator(file, "UTF-8");
try {
while (it.hasNext()) {
String line = it.nextLine();
/// do something with line
}
} finally {
LineIterator.closeQuietly(iterator);
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.