public enum CompressorType extends Enum<CompressorType>
| Enum Constant and Description |
|---|
BZIP2
The bzip2.
|
DEFLATER
The deflater.
|
GZIP
The gzip.
|
LZ4
The lz4.
|
NONE
Not compress
|
SEVENZ
The sevenz.
|
ZIP
The zip.
|
ZSTD
The zstd.
|
| Modifier and Type | Method and Description |
|---|---|
static CompressorType |
getByCode(int code)
Gets result code.
|
static CompressorType |
getByName(String name)
Gets result code.
|
byte |
getCode()
Gets code.
|
static CompressorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressorType NONE
public static final CompressorType GZIP
public static final CompressorType ZIP
public static final CompressorType SEVENZ
public static final CompressorType BZIP2
public static final CompressorType LZ4
public static final CompressorType DEFLATER
public static final CompressorType ZSTD
public static CompressorType[] values()
for (CompressorType c : CompressorType.values()) System.out.println(c);
public static CompressorType 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 CompressorType getByCode(int code)
code - the codepublic static CompressorType getByName(String name)
name - the codepublic byte getCode()
Copyright © 2023 Seata. All rights reserved.