DirectoryStream Iterator

Alan Bateman Alan.Bateman at Sun.COM
Sat Jun 27 13:10:42 PDT 2009


Brian Dellisanti wrote:
> DirectoryStream docs say:
>
> "The iterator's remove method removes the directory entry for the last
> element returned by the iterator, as if by invoking the delete method.
> If an I/O error or security exception occurs then
> ConcurrentModificationException is thrown with the cause."
>
> Will the iterator remain valid after the ConcurrentModificationException?
>   
Yes, failure to delete the file won't impact the iterator.

-Alan.



More information about the nio-discuss mailing list