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