Unable to create a zip file using the Zip filesystem provider anymore?

Francis Galiegue fgaliegue at gmail.com
Fri Apr 29 16:13:32 UTC 2016


Hello,

On Fri, Apr 29, 2016 at 6:06 PM, Xueming Shen <xueming.shen at oracle.com> wrote:
> I doubt it ever worked this way. The code created a zero-length empty file
> which is not in zip format ...
> The "create" is only checked if the file does not exits.
>

This page disagrees:

http://docs.oracle.com/javase/7/docs/technotes/guides/io/fsp/zipfilesystemprovider.html

Note the link it points to:

http://docs.oracle.com/javase/7/docs/technotes/guides/io/fsp/zipfilesystemproviderprops.html

Quoting:

create true / false The value should be of type java.lang.String. The
default value is false. If the value is true, the zip file system
provider creates a new zip file if it does not exist.

I did try that in the past and it _did_ work. Now it doesn't work anymore.

The problem is, I can't tell since which version it doesn't work anymore :(
-- 
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