Bundled zip FileSystemProvider fails to recognize "readonly"?

Xueming Shen xueming.shen at oracle.com
Fri Apr 17 15:27:38 UTC 2015


On 4/17/15 6:20 AM, Alan Bateman wrote:
> On 14/04/2015 13:36, Francis Galiegue wrote:
>> My recall is that at some point this flag was supported by the fs
>> provider but now the page seems to have changed:
>>
>> http://docs.oracle.com/javase/8/docs/technotes/guides/io/fsp/zipfilesystemproviderprops.html 
>>
>>
>> Did I misread the documentation completely and it was never supported?
>>
> "create" and "encoding" have been the two documented property names, I 
> don't ever recall having "readonly". Sherman - do you remember 
> anything on this?
>
> The zip provider just tests if the zip file is writable and if so then 
> newFileSystem creates a writeable file system. If the zip file is not 
> writable (or it can't be determined) then newFileSystem creates a 
> read-only file system.
>
> -Alan

There is a "readonly" flag field, which is set if the zip file itself is 
a readly only file.

-Sherman


More information about the nio-dev mailing list