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.

Niall

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


Hi,

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to