Unable to create a zip file using the Zip filesystem provider anymore?
Francis Galiegue
fgaliegue at gmail.com
Fri Apr 29 17:39:13 UTC 2016
Hello again,
On Fri, Apr 29, 2016 at 7:20 PM, Xueming Shen <xueming.shen at oracle.com> wrote:
[...]
>
>> Ie, Collections.map("create", "true") worked before but does not work
>> anymore. And therein lies the "bug".
>>
>
> You meant map("create", true) works but does not work anymore ? again, I
> don't
> think it ever worked (?), as the original code is
>
> this.createNew = "true".equals(env.get("create"));
>
> so it should always be "false" if a boolean true is passed in ( but, yes, it
> might be
> desired to support the "boolean true/false").
>
> hmm, we might have a "ghost" version somewhere.
>
Sorry for the mishap; my code was meant to use
Collections.singletonMap("create", "true"). For "kicks" I tried to
replace it with boolean true instead, but it appears that this didn't
work either... And I forgot to change it back :/
Now, granted, I know that historically, the zip filesystem was only
meant to be there as a POC for JSR 203 and not meant for final
inclusion but now it is; and I loved this so I played with it:
https://github.com/fge/java7-fs-ftp,
https://github.com/java7-fs-dropbox and others as well.
Still, "walking" archives using JSR 203 is great, and zip being there,
although "unspecified", if it were solid enough for daily use, that
would be a great demonstration of what JSR 203 is really capable of.
I already went as far as this:
https://www.youtube.com/watch?v=uTNuCxPJX5g
(sorry for the very poor quality of the video)
But if the zip implementation were, well, solid enough... That would
be a great asset, imho.
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