There is no iterator as you describe at present. I have plans in my head to add more read methods to io including
FileUtils.readToByteArray(File) FileUtils.readLinesToStringList(File) FileUtils.readLinesToStringArray(File) However, an iterator to achieve the lines approach would also be a useful addition for larger files. If you create one, with apache licence and tests, please attach it to a bugzilla enhancement report and we can try to include it in v1.1. Stephen ----- Original Message ----- From: <[EMAIL PROTECTED]> > not sure if this is better directed at the io commons, or at > collections/iterators. > > i'd like to iterate through the lines of an input stream (ala > BufferedReader.readLine()), and i was hoping that there was an iterator > in commons collections or io to do this, but there doesn't seem to be. > is there a historical reason for this, or is it just a matter of > someone putting one together and asking for people to consider it? > > if there are previous discussions of this i should see, please point > them out. i tried searching the archives for 'file line iterator', > 'StreamIterator', 'FileIterator', and 'input stream iterator', and > didn't get anything which really told me one way or the other why this > iterator isn't yet present, but it's kind of a hard thing to search for > i guess. > > jon > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
