commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [io][collections/iterators] a line by line iterator from an input stream?
Date Wed, 14 Jul 2004 21:26:20 GMT
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: <dev@samizdatdigital.org>
> 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: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message