|
|
dcafda |
From 9937297a90b43a5e1238932eb8a07c44303056ed Mon Sep 17 00:00:00 2001
|
|
|
dcafda |
From: Marian Koncek <mkoncek@redhat.com>
|
|
|
dcafda |
Date: Fri, 6 Aug 2021 13:42:40 +0200
|
|
|
dcafda |
Subject: [PATCH] Remove Pack200 compressor
|
|
|
dcafda |
|
|
|
dcafda |
---
|
|
|
dcafda |
.../compress/compressors/CompressorStreamFactory.java | 10 ++--------
|
|
|
dcafda |
1 file changed, 2 insertions(+), 8 deletions(-)
|
|
|
dcafda |
|
|
|
dcafda |
diff --git a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
|
|
|
dcafda |
index eee7c31..de7da23 100644
|
|
|
dcafda |
--- a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
|
|
|
dcafda |
+++ b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
|
|
|
dcafda |
@@ -45,8 +45,6 @@ import org.apache.commons.compress.compressors.lz4.FramedLZ4CompressorOutputStre
|
|
|
dcafda |
import org.apache.commons.compress.compressors.lzma.LZMACompressorInputStream;
|
|
|
dcafda |
import org.apache.commons.compress.compressors.lzma.LZMACompressorOutputStream;
|
|
|
dcafda |
import org.apache.commons.compress.compressors.lzma.LZMAUtils;
|
|
|
dcafda |
-import org.apache.commons.compress.compressors.pack200.Pack200CompressorInputStream;
|
|
|
dcafda |
-import org.apache.commons.compress.compressors.pack200.Pack200CompressorOutputStream;
|
|
|
dcafda |
import org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorInputStream;
|
|
|
dcafda |
import org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorOutputStream;
|
|
|
dcafda |
import org.apache.commons.compress.compressors.snappy.SnappyCompressorInputStream;
|
|
|
dcafda |
@@ -478,10 +476,6 @@ public class CompressorStreamFactory implements CompressorStreamProvider {
|
|
|
dcafda |
return GZIP;
|
|
|
dcafda |
}
|
|
|
dcafda |
|
|
|
dcafda |
- if (Pack200CompressorInputStream.matches(signature, signatureLength)) {
|
|
|
dcafda |
- return PACK200;
|
|
|
dcafda |
- }
|
|
|
dcafda |
-
|
|
|
dcafda |
if (FramedSnappyCompressorInputStream.matches(signature, signatureLength)) {
|
|
|
dcafda |
return SNAPPY_FRAMED;
|
|
|
dcafda |
}
|
|
|
dcafda |
@@ -592,7 +586,7 @@ public class CompressorStreamFactory implements CompressorStreamProvider {
|
|
|
dcafda |
}
|
|
|
dcafda |
|
|
|
dcafda |
if (PACK200.equalsIgnoreCase(name)) {
|
|
|
dcafda |
- return new Pack200CompressorInputStream(in);
|
|
|
dcafda |
+ throw new CompressorException("Pack200 compression is not available in this build.");
|
|
|
dcafda |
}
|
|
|
dcafda |
|
|
|
dcafda |
if (SNAPPY_RAW.equalsIgnoreCase(name)) {
|
|
|
dcafda |
@@ -673,7 +667,7 @@ public class CompressorStreamFactory implements CompressorStreamProvider {
|
|
|
dcafda |
}
|
|
|
dcafda |
|
|
|
dcafda |
if (PACK200.equalsIgnoreCase(name)) {
|
|
|
dcafda |
- return new Pack200CompressorOutputStream(out);
|
|
|
dcafda |
+ throw new CompressorException("Pack200 compression is not available in this build.");
|
|
|
dcafda |
}
|
|
|
dcafda |
|
|
|
dcafda |
if (LZMA.equalsIgnoreCase(name)) {
|
|
|
dcafda |
--
|
|
|
dcafda |
2.31.1
|
|
|
dcafda |
|