Package com.helger.as2lib.crypto
Enum ECompressionType
- java.lang.Object
-
- java.lang.Enum<ECompressionType>
-
- com.helger.as2lib.crypto.ECompressionType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>
,Serializable
,Comparable<ECompressionType>
public enum ECompressionType extends Enum<ECompressionType> implements com.helger.commons.id.IHasID<String>
Define the supported SMIME compression types for as2-lib.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ZLIB
Use ZLIB compression.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.bouncycastle.operator.OutputCompressor
createOutputCompressor()
static ECompressionType
getFromIDCaseInsensitiveOrNull(String sID)
String
getID()
static ECompressionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECompressionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZLIB
public static final ECompressionType ZLIB
Use ZLIB compression.
-
-
Method Detail
-
values
public static ECompressionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ECompressionType c : ECompressionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECompressionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getID
in interfacecom.helger.commons.id.IHasID<String>
-
createOutputCompressor
@Nonnull public abstract org.bouncycastle.operator.OutputCompressor createOutputCompressor()
- Returns:
- The
OutputCompressor
instance suitable for this compression type.
-
getFromIDCaseInsensitiveOrNull
@Nullable public static ECompressionType getFromIDCaseInsensitiveOrNull(@Nullable String sID)
-
-