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

Alan Bateman Alan.Bateman at oracle.com
Sat Dec 13 10:34:10 UTC 2014


On 12/12/2014 17:37, Colin Decker 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 
> <https://github.com/google/jimfs/blob/master/jimfs/src/main/java/com/google/common/jimfs/FileLookup.java> 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.
That sounds right as there is no requirement for the file to exist at 
the time that the view is created.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20141213/5c999d84/attachment.html>


More information about the nio-dev mailing list