suggestion for convenience method for BasicFileAttributes

Alan Bateman Alan.Bateman at Sun.COM
Tue Sep 1 01:43:42 PDT 2009


Vince Bonfanti wrote:
> A minor suggestion: as a convenience for provider implementors, it
> seems that BasicFileAttributes could be declared abstract (rather than
> an interface), and implement a method that looks something like below.
> Otherwise, it seems that every provider implementor is going to have
> to implement their own method that does exactly this (or something
> similar).
>
> Vince
>   
You are right that each provider will require code that is somewhat 
similar to this. The bigger question is how much should the runtime 
carry to make it easier for provider implementations (as the number of 
providers will be very small). For now, we don't have any base 
implementations in the spi package.

-Alan.


More information about the nio-discuss mailing list