/[Apache-SVN]
ViewVC logotype

Revision 890088


Jump to revision: Previous Next
Author: jukka
Date: Sun Dec 13 18:31:55 2009 UTC (14 years, 9 months ago)
Changed paths: 6
Log Message:
COMPRESS-93: Support for alternative ZIP compression methods

Override the ZipEntry compression method getter and setter in ZipArchiveEntry. This prevents the IllegalArgumentException that was thrown whenever a zip entry with an unsupported compression method was encountered. With this change an IOException is thrown instead only if or when the entry is actually being read or written. In addition, a public ZipArchiveEntry.isSupportedCompressionMethod() method is introduced so client code can choose to explicitly skip reading ZIP entries with unsupported compression methods.

Changed paths

Path Details
Directorycommons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java modified , text changed
Directorycommons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java modified , text changed
Directorycommons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java modified , text changed
Directorycommons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java modified , text changed
Directorycommons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntryTest.java modified , text changed
Directorycommons/proper/compress/trunk/src/test/resources/moby.zip added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26