Enum Encoder.Mode
- All Implemented Interfaces:
Serializable
,Comparable<Encoder.Mode>
,java.lang.constant.Constable
- Enclosing class:
Encoder
https://www.brotli.org/encode.html#aa6f
See encode.h, typedef enum BrotliEncoderMode
Important: The ordinal value of the
modes should be the same as the constant values in encode.h
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Encoder.Mode
of
(int value) static Encoder.Mode
Returns the enum constant of this type with the specified name.static Encoder.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GENERIC
Default compression mode. In this mode compressor does not know anything in advance about the properties of the input. -
TEXT
Compression mode for UTF-8 formatted text input. -
FONT
Compression mode used in WOFF 2.0.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
of
-