public enum CompressType extends Enum<CompressType>
Modifier and Type | Method and Description |
---|---|
static CompressType |
fromName(String name) |
String |
getName() |
int |
getValue() |
static CompressType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressType NONE
public static final CompressType GZIP
public static final CompressType BZIP2
public static final CompressType DEFLATE
public static final CompressType UNKNOWN
public static CompressType[] values()
for (CompressType c : CompressType.values()) System.out.println(c);
public static CompressType 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 String getName()
public int getValue()
public static CompressType fromName(String name)
Copyright © 2023. All rights reserved.