ListFiles performance vs file system visitor

Alan Bateman Alan.Bateman at Sun.COM
Tue Feb 17 12:55:14 PST 2009


Paulo Levi wrote:
> How about adding a iterator like method (to remove the array creation)?
>   
Yes, the new API provides an iterator.

> Also if wasn't for the isDirectory i could make a lazy File
> extension/delegate (no normalization - if the private constructor was
> protected that would work too), at least for the files that aren't
> directories (that are in common usage the most of them). Any
> alternative to is directory?
>   
I don't completely understand what you are saying here but you can't 
tell the non-directories by the names and so you will have to continue 
to use isDirectory with your solution.

> Nio2 can't be used as a seperate jar since it introduces new native api right?
>   
It's not a standalone API, sorry!

-Alan.



More information about the nio-discuss mailing list