public enum CompressionScheme extends java.lang.Enum<CompressionScheme>
Enum Constant and Description |
---|
GZIP
GZIP compression scheme
|
NONE
No compression scheme
|
Modifier and Type | Method and Description |
---|---|
static CompressionScheme |
parseCompressionScheme(java.lang.String input)
Parses a compression scheme given as string
|
java.lang.String |
toKey() |
java.lang.String |
toString() |
static CompressionScheme |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompressionScheme[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final CompressionScheme GZIP
public static final CompressionScheme NONE
public static CompressionScheme parseCompressionScheme(java.lang.String input)
input
- the input stringpublic java.lang.String toKey()
public java.lang.String toString()
toString
in class java.lang.Enum<CompressionScheme>
public static CompressionScheme valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CompressionScheme[] values()
for (CompressionScheme c : CompressionScheme.values()) System.out.println(c);
Copyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.