Enum Bzip2Encoder.State
- java.lang.Object
-
- java.lang.Enum<Bzip2Encoder.State>
-
- io.netty.handler.codec.compression.Bzip2Encoder.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Bzip2Encoder.State>
- Enclosing class:
- Bzip2Encoder
private static enum Bzip2Encoder.State extends java.lang.Enum<Bzip2Encoder.State>
Current state of stream.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSE_BLOCK
INIT
INIT_BLOCK
WRITE_DATA
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Bzip2Encoder.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Bzip2Encoder.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final Bzip2Encoder.State INIT
-
INIT_BLOCK
public static final Bzip2Encoder.State INIT_BLOCK
-
WRITE_DATA
public static final Bzip2Encoder.State WRITE_DATA
-
CLOSE_BLOCK
public static final Bzip2Encoder.State CLOSE_BLOCK
-
-
Method Detail
-
values
public static Bzip2Encoder.State[] 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 (Bzip2Encoder.State c : Bzip2Encoder.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Bzip2Encoder.State valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-