commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <>
Subject Re: [io] File content iterator
Date Thu, 05 Jan 2006 14:07:28 GMT
Great idea(s) - I've attached files/patches to the bugzilla ticket as a
possible starting point for this. I hope I haven't stepped on anyones toes.


----- Original Message ----- 
From: "Harrington, James MAJ" <>
To: <>
Sent: Thursday, January 05, 2006 9:31 AM
Subject: Re: [io] File content iterator


That design sound perfectly reasonable to me.

I'm thinking you would want to both close the resources used by the
iterator when it has served up the list line in the file AND allow the
resources to be explicitly closed so that a file could be partially
processed.  I would also add the ability to explicitly close the
iterator by introducing an appropriately named interface that the
returned iterator would also implement.  This would allow users that
don't want to explicitly close the iterator to simply use an instance of
java.util.Iterator and only require users who want to explicitly close
to cast to the introduced interface.

  Jim Harrington

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message