Package org.pgpainless.policy
Class Policy.CompressionAlgorithmPolicy
- java.lang.Object
-
- org.pgpainless.policy.Policy.CompressionAlgorithmPolicy
-
- Enclosing class:
- Policy
public static final class Policy.CompressionAlgorithmPolicy extends Object
-
-
Constructor Summary
Constructors Constructor Description CompressionAlgorithmPolicy(CompressionAlgorithm defaultCompressionAlgorithm, List<CompressionAlgorithm> acceptableCompressionAlgorithms)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompressionAlgorithm
defaultCompressionAlgorithm()
static Policy.CompressionAlgorithmPolicy
defaultCompressionAlgorithmPolicy()
boolean
isAcceptable(int compressionAlgorithmTag)
boolean
isAcceptable(CompressionAlgorithm compressionAlgorithm)
-
-
-
Constructor Detail
-
CompressionAlgorithmPolicy
public CompressionAlgorithmPolicy(CompressionAlgorithm defaultCompressionAlgorithm, List<CompressionAlgorithm> acceptableCompressionAlgorithms)
-
-
Method Detail
-
defaultCompressionAlgorithm
public CompressionAlgorithm defaultCompressionAlgorithm()
-
isAcceptable
public boolean isAcceptable(int compressionAlgorithmTag)
-
isAcceptable
public boolean isAcceptable(CompressionAlgorithm compressionAlgorithm)
-
defaultCompressionAlgorithmPolicy
public static Policy.CompressionAlgorithmPolicy defaultCompressionAlgorithmPolicy()
-
-