public static enum SnapStream.StreamMode extends Enum<SnapStream.StreamMode>
Modifier and Type | Field and Description |
---|---|
static SnapStream.StreamMode |
DEFAULT_MODE |
Modifier and Type | Method and Description |
---|---|
static SnapStream.StreamMode |
fromString(String name) |
String |
getFileExtension() |
String |
getName() |
static SnapStream.StreamMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnapStream.StreamMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnapStream.StreamMode GZIP
public static final SnapStream.StreamMode SNAPPY
public static final SnapStream.StreamMode CHECKED
public static final SnapStream.StreamMode DEFAULT_MODE
public static SnapStream.StreamMode[] values()
for (SnapStream.StreamMode c : SnapStream.StreamMode.values()) System.out.println(c);
public static SnapStream.StreamMode 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 String getFileExtension()
public static SnapStream.StreamMode fromString(String name)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.