Bundled zip FileSystemProvider fails to recognize "readonly"?

Francis Galiegue fgaliegue at gmail.com
Fri Apr 17 15:24:50 UTC 2015


Hello,

On Fri, Apr 17, 2015 at 3:20 PM, Alan Bateman <Alan.Bateman at oracle.com> 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.
>

OK... But I believe it would be a nice option to have. Would such a
feature request be considered at all?

Regards,
-- 
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/fge/grappa


More information about the nio-dev mailing list