Files.newDirectoryStream vs File.listFiles

Paulo Levi i30817 at gmail.com
Mon May 21 00:05:45 PDT 2012


Oh it doesn't make much sense inside the Directory stream i agree.

The reason i wanted that method is that the list was going to be iterated
more than once (and passed around).

Laziness is a fine notion, but i object to it when it prevents me from
refactoring easily.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20120521/a69ba42f/attachment.html 


More information about the nio-discuss mailing list