commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject [compress] Some merging in zip package
Date Sat, 07 Feb 2009 14:10:28 GMT
Hi,

I've merged ZipEntry into ZipArchiveEntry and ZipOutputStream into
ZipArchiveOutputStream.  As a side effect ZipArchiveOutputStream now
supports encoding of file names and the zip file comment (among other
things that it does better than java.util.zip.ZipOutputStream like
providing usable Unix permissions for directory entries).

ZipArchiveOutputStream will now use the platform's native encoding
instead of UTF8 by default now, while JarArchiveOutputStream
explicitly sets the encoding to UTF8.  Does anybody consider this a
problem?

Ant never had a ZipInputStream replacement, we only use ZipFile since
the zip format is a lot easier to implement on top of
RandomAccessFile.  I suggest we state somewhere in the docs (which
docs?) that you should use ZipFile if you intend to read a zip archive
with non-UTF8 encoding of filenames.

I'll look into merging the Tar streams as well next.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message