Why doesn't FileSystemProvider#getFileAttributeView() throw an IOException?

Francis Galiegue fgaliegue at gmail.com
Fri Dec 12 17:45:56 UTC 2014


On Fri, Dec 12, 2014 at 6:37 PM, Colin Decker <cgdecker at google.com> wrote:
> Implementing the file attribute stuff (in a generalized way, anyway) is
> somewhat of a pain, but implementing views didn't seem like a particularly
> hard part of that to me. You just need to look up the file for each
> operation on the view. I handled that by having views wrap a FileLookup
> object rather than a handle to an open file. Not saying that's exactly how
> it should work in all cases or anything, of course.
>
>

Well, I did have a go at a generalized implementation:

https://github.com/fge/java7-fs-base/tree/master/src/main/java/com/github/fge/filesystem/attributes

I have yet to document all this API, but I'm eating my own dog's food
and already implemented one (crude) file system over dropbox and I'm
on to the next now.

When this API is documented I'll share the link; I would love reviews,
of course!

-- 
Francis Galiegue, fgaliegue at gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/parboiled1/grappa (redde
Caesaris: https://github.com/sirthias)


More information about the nio-dev mailing list