Package org.docx4j.fonts.fop.fonts
Class EncodingMode
java.lang.Object
org.docx4j.fonts.fop.fonts.EncodingMode
- All Implemented Interfaces:
java.io.Serializable
public final class EncodingMode
extends java.lang.Object
implements java.io.Serializable
This class enumerates all supported encoding modes for fonts:
auto, single-byte and CID.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static EncodingModeAUTOAutomatic selection of encoding mode.static EncodingModeCIDCID encodingstatic EncodingModeSINGLE_BYTESingle-byte encoding -
Method Summary
Modifier and Type Method Description java.lang.StringgetName()Returns the encoding mode name.java.lang.StringtoString()static EncodingModevalueOf(java.lang.String name)Returns theEncodingModeby name.
-
Field Details
-
AUTO
Automatic selection of encoding mode. -
SINGLE_BYTE
Single-byte encoding -
CID
CID encoding
-
-
Method Details
-
getName
public java.lang.String getName()Returns the encoding mode name.- Returns:
- the encoding mode name
-
valueOf
Returns theEncodingModeby name.- Parameters:
name- the name of the encoding mode to look up- Returns:
- the encoding mode constant
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-