public static enum CompressionUtils.Format extends Enum<CompressionUtils.Format>
| Modifier and Type | Method and Description |
|---|---|
static CompressionUtils.Format |
fromFileName(String fileName) |
String |
getExtension() |
String |
getSuffix() |
static CompressionUtils.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionUtils.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionUtils.Format BZ2
public static final CompressionUtils.Format GZ
public static final CompressionUtils.Format SNAPPY
public static final CompressionUtils.Format XZ
public static final CompressionUtils.Format ZIP
public static final CompressionUtils.Format ZSTD
public static CompressionUtils.Format[] values()
for (CompressionUtils.Format c : CompressionUtils.Format.values()) System.out.println(c);
public static CompressionUtils.Format 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 getSuffix()
public String getExtension()
@Nullable public static CompressionUtils.Format fromFileName(@Nullable String fileName)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.