Package org.apache.fop.fonts
Enum EncodingMode
- All Implemented Interfaces:
Serializable
,Comparable<EncodingMode>
,java.lang.constant.Constable
This class enumerates all supported encoding modes for fonts: auto, single-byte and CID.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAutomatic selection of encoding mode.CID encodingSingle-byte encoding -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the encoding mode name.static EncodingMode
Returns theEncodingMode
by name.toString()
static EncodingMode
Returns the enum constant of this type with the specified name.static EncodingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTO
Automatic selection of encoding mode. -
SINGLE_BYTE
Single-byte encoding -
CID
CID encoding
-
-
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
-
getName
Returns the encoding mode name.- Returns:
- the encoding mode name
-
getValue
Returns theEncodingMode
by name.- Parameters:
name
- the name of the encoding mode to look up- Returns:
- the encoding mode constant
-
toString
- Overrides:
toString
in classEnum<EncodingMode>
-