Enum SnapStream.StreamMode
- java.lang.Object
- 
- java.lang.Enum<SnapStream.StreamMode>
- 
- org.apache.zookeeper.server.persistence.SnapStream.StreamMode
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<SnapStream.StreamMode>
 - Enclosing class:
- SnapStream
 
 public static enum SnapStream.StreamMode extends Enum<SnapStream.StreamMode> 
- 
- 
Field SummaryFields Modifier and Type Field Description static SnapStream.StreamModeDEFAULT_MODE
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnapStream.StreamModefromString(String name)StringgetFileExtension()StringgetName()static SnapStream.StreamModevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
GZIPpublic static final SnapStream.StreamMode GZIP 
 - 
SNAPPYpublic static final SnapStream.StreamMode SNAPPY 
 - 
CHECKEDpublic static final SnapStream.StreamMode CHECKED 
 
- 
 - 
Field Detail- 
DEFAULT_MODEpublic static final SnapStream.StreamMode DEFAULT_MODE 
 
- 
 - 
Method Detail- 
valuespublic static SnapStream.StreamMode[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SnapStream.StreamMode c : SnapStream.StreamMode.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static SnapStream.StreamMode valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
getNamepublic String getName() 
 - 
getFileExtensionpublic String getFileExtension() 
 - 
fromStringpublic static SnapStream.StreamMode fromString(String name) 
 
- 
 
-