The Apache Commons Team is pleased to announce the release of Apache
Commons Compress 1.13.
Compress 1.13 adds write support for LZMA as raw streams as well as
inside 7z archives. Independently developed compressors and archivers
can now be added via the standard ServiceLocator mechanism and ZIP and
7z archives can now be read from a SeekableByteChannel rather than a
Compress 1.13 is the first release that requires Java 7 at runtime.
The Apache Commons Compress Library defines a Java API for working with
ar, cpio, tar, zip, 7z, arj, dump, gzip, pack200, bzip2, lzma, snappy,
Z, xz and deflate files.
Source and binary distributions are available for download from the
Apache Commons download site:
When downloading, please verify signatures using the KEYS file available
at the above location when downloading the release.
Changes in this version include:
o SevenZFile, SevenZOutputFile, ZipFile and
ZipArchiveOutputStream can now work on non-file resources if
they can be accessed via SeekableByteChannel.
o Allow compressor extensions through a standard JRE ServiceLoader.
o Allow archive extensions through a standard JRE ServiceLoader.
o Add write support for the legacy LZMA format, this requires XZ
for Java 1.6.
o Add write support for the legacy LZMA stream to 7z, this
requires XZ for Java 1.6.
o Allow the clients of ParallelScatterZipCreator to provide
Issue: COMPRESS-375. Thanks to Plamen Totev.
o Add a version-independent link to the API docs of the latest
o BitInputStream could return bad results when overflowing
internally - if two consecutive reads tried to read more than
o ZipArchiveInputStream.closeEntry does not properly advance to
next entry if there are junk bytes at end of data section.
Issue: COMPRESS-364. Thanks to Mike Mole.
o ZipArchiveInputStream now throws an Exception if it encounters
a broken ZIP archive rather than signaling end-of-archive.
Issue: COMPRESS-367. Thanks to Mike Mole.
o ScatterZipOutputStream didn't close the StreamCompressor
causing a potential resource leak.
o Update Java requirement from 6 to 7.
o Clarified which TarArchiveEntry methods are useless for
entries read from an archive.
For complete information on Commons Compress, including instructions
on how to submit bug reports, patches, or suggestions for improvement,
see the Apache Commons Compress website: