public static enum Encoder.Mode extends Enum<Encoder.Mode>
Important: The ordinal value of the modes should be the same as the constant values in encode.h
| Enum Constant and Description |
|---|
FONT
Compression mode used in WOFF 2.0.
|
GENERIC
Default compression mode.
|
TEXT
Compression mode for UTF-8 formatted text input.
|
| Modifier and Type | Method and Description |
|---|---|
static Encoder.Mode |
of(int value) |
static Encoder.Mode |
valueOf(String name)
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.
|
public static final Encoder.Mode GENERIC
public static final Encoder.Mode TEXT
public static final Encoder.Mode FONT
public static Encoder.Mode[] values()
for (Encoder.Mode c : Encoder.Mode.values()) System.out.println(c);
public static Encoder.Mode 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 static Encoder.Mode of(int value)
Copyright © 2024. All rights reserved.