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 EncodingMode AUTO
    Automatic selection of encoding mode.
    static EncodingMode CID
    CID encoding
    static EncodingMode SINGLE_BYTE
    Single-byte encoding
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()
    Returns the encoding mode name.
    java.lang.String toString()
    static EncodingMode valueOf​(java.lang.String name)
    Returns the EncodingMode by name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Method Details

    • getName

      public java.lang.String getName()
      Returns the encoding mode name.
      Returns:
      the encoding mode name
    • valueOf

      public static EncodingMode valueOf​(java.lang.String name)
      Returns the EncodingMode by name.
      Parameters:
      name - the name of the encoding mode to look up
      Returns:
      the encoding mode constant
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object