Early review on NIO Stream APIs

Zhong Yu zhong.j.yu at gmail.com
Thu Feb 7 18:53:04 PST 2013


The find() method uses a

    BiPredicate<Path, BasicFileAttributes> matcher

what about using the existing java.nio.file.PathMatcher interface?
There are already some implementations of PathMatcher both in JDK and
in the wild.

PathMatcher doesn't accept the file attributes though, but that's a
problem for most  Path-based APIs - path alone often isn't enough and
app has to look up attributes in a separate step.

Zhong Yu

On Thu, Feb 7, 2013 at 6:15 PM, Henry Jen <henry.jen at oracle.com> wrote:
> Hi,
>
> While lambda still finalizing the final API for Stream, there are a
> couple of streamifaction APIs in nio area, which I would like to start
> circling around to get early feedbacks.
>
> Those APIs return a CloseableStream, other than that, there is not much
> directly connection to Stream definition.
>
> The specdiff and webrev is available at
>
> http://cr.openjdk.java.net/~henryjen/ccc/8006884.0/
>
> Please include me in the reply as I don't necessary receiving emails
> from all aliases.
>
> Cheers,
> Henry


More information about the nio-dev mailing list