public enum ZipCompressionMethod extends Enum<ZipCompressionMethod> implements IEnumValue
Defines ZIP compression methods.
| Enum Constant and Description |
|---|
BZip2
The file is compressed with the BZip2 algorithm.
|
Deflated
The file is Deflated.
|
Imploded
The file is Imploded.
|
Lzma
The Lempel-Ziv-Markov chain-Algorithm.
|
NoCompression
The file is stored (no compression).
|
Reserved
A reserved compression method.
|
Shrunk
The file is Shrunk.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
static ZipCompressionMethod |
getByRawValue(int rawValue) |
IEnumValue |
getEnumValueByName(String name)
Returns the enumeration value by its name.
|
IEnumValue |
getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
|
static IEnumValue |
getFirst() |
int |
getRawValue()
Returns the raw value of this enumeration value.
|
RawIntegerType |
getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
|
static ZipCompressionMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZipCompressionMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final ZipCompressionMethod BZip2
The file is compressed with the BZip2 algorithm.
public static final ZipCompressionMethod Deflated
The file is Deflated.
public static final ZipCompressionMethod Imploded
The file is Imploded.
public static final ZipCompressionMethod Lzma
The Lempel-Ziv-Markov chain-Algorithm.
public static final ZipCompressionMethod NoCompression
The file is stored (no compression).
public static final ZipCompressionMethod Reserved
A reserved compression method.
public static final ZipCompressionMethod Shrunk
The file is Shrunk.
public Object[] getAllValues()
IEnumValueReturns the array of all values defined in the class.
getAllValues in interface IEnumValuepublic static ZipCompressionMethod getByRawValue(int rawValue)
public IEnumValue getEnumValueByName(String name)
IEnumValueReturns the enumeration value by its name.
getEnumValueByName in interface IEnumValuename - The name of the enumeration value.public IEnumValue getEnumValueByRawValue(int rawValue)
IEnumValueReturns the enumeration value by the raw value associated with it.
getEnumValueByRawValue in interface IEnumValuerawValue - The raw value.public static IEnumValue getFirst()
public int getRawValue()
IEnumValueReturns the raw value of this enumeration value.
getRawValue in interface IEnumValuepublic RawIntegerType getRawValueType()
IEnumValueReturns the underlying type of the raw value of this enumeration value.
getRawValueType in interface IEnumValuepublic static ZipCompressionMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ZipCompressionMethod[] values()
for (ZipCompressionMethod c : ZipCompressionMethod.values()) System.out.println(c);
Copyright © 2026. All rights reserved.