How to do File.setReadOnly(boolean) in NIO.2

Christian Schlichtherle christian at schlichtherle.de
Sun May 29 23:37:36 PDT 2011


Hi,

 

I can find no equivalent to File.setReadOnly(boolean) using the NIO.2 API. I
suppose I should be calling Files.setAttribute(*), but what is the attribute
parameter in a cross-platform way?

 

Regards,

Christian

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20110530/45b4661a/attachment.html 


More information about the nio-discuss mailing list