Enum Class FontCharset

java.lang.Object
java.lang.Enum<FontCharset>
org.apache.poi.common.usermodel.fonts.FontCharset
All Implemented Interfaces:
Serializable, Comparable<FontCharset>, Constable

public enum FontCharset extends Enum<FontCharset>
Charset represents the basic set of characters associated with a font (that it can display), and corresponds to the ANSI codepage (8-bit or DBCS) of that character set used by a given language.
Since:
POI 3.17-beta2
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Specifies the English character set.
    Specifies the Arabic character set.
    Specifies the Baltic (Northeastern European) character set.
    Specifies the "traditional" Chinese character set, used mostly in Taiwan and in the Hong Kong and Macao Special Administrative Regions.
    Specifies a character set based on the current system locale; for example, when the system locale is United States English, the default character set is ANSI_CHARSET.
    Specifies a Eastern European character set.
    Specifies the "simplified" Chinese character set for People's Republic of China.
    Specifies the Greek character set.
    Also spelled "Hangeul".
    Specifies the Hebrew character set.
    Also spelled "Johap".
    Specifies the Apple Macintosh character set.
    Specifies a mapping to one of the OEM code pages, according to the current system locale setting.
    Specifies the Russian Cyrillic character set.
    Specifies the Japanese character set.
    Specifies a character set of symbols.
    Specifies the Thai character set.
    Specifies the Turkish character set.
    Specifies the Vietnamese character set.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     
    valueOf(int value)
    Returns the enum constant of this class with the specified name.
    Returns the enum constant of this class with the specified name.
    static FontCharset[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ANSI

      public static final FontCharset ANSI
      Specifies the English character set.
    • DEFAULT

      public static final FontCharset DEFAULT
      Specifies a character set based on the current system locale; for example, when the system locale is United States English, the default character set is ANSI_CHARSET.
    • SYMBOL

      public static final FontCharset SYMBOL
      Specifies a character set of symbols.
    • MAC

      public static final FontCharset MAC
      Specifies the Apple Macintosh character set.
    • SHIFTJIS

      public static final FontCharset SHIFTJIS
      Specifies the Japanese character set.
    • HANGUL

      public static final FontCharset HANGUL
      Also spelled "Hangeul". Specifies the Hangul Korean character set.
    • JOHAB

      public static final FontCharset JOHAB
      Also spelled "Johap". Specifies the Johab Korean character set.
    • GB2312

      public static final FontCharset GB2312
      Specifies the "simplified" Chinese character set for People's Republic of China.
    • CHINESEBIG5

      public static final FontCharset CHINESEBIG5
      Specifies the "traditional" Chinese character set, used mostly in Taiwan and in the Hong Kong and Macao Special Administrative Regions.
    • GREEK

      public static final FontCharset GREEK
      Specifies the Greek character set.
    • TURKISH

      public static final FontCharset TURKISH
      Specifies the Turkish character set.
    • VIETNAMESE

      public static final FontCharset VIETNAMESE
      Specifies the Vietnamese character set.
    • HEBREW

      public static final FontCharset HEBREW
      Specifies the Hebrew character set.
    • ARABIC

      public static final FontCharset ARABIC
      Specifies the Arabic character set.
    • BALTIC

      public static final FontCharset BALTIC
      Specifies the Baltic (Northeastern European) character set.
    • RUSSIAN

      public static final FontCharset RUSSIAN
      Specifies the Russian Cyrillic character set.
    • THAI_

      public static final FontCharset THAI_
      Specifies the Thai character set.
    • EASTEUROPE

      public static final FontCharset EASTEUROPE
      Specifies a Eastern European character set.
    • OEM

      public static final FontCharset OEM
      Specifies a mapping to one of the OEM code pages, according to the current system locale setting.
  • Method Details

    • values

      public static FontCharset[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FontCharset valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCharset

      public Charset getCharset()
      Returns:
      charset for the font or null if there is no matching charset or if the charset is a "default"
    • getNativeId

      public int getNativeId()
    • valueOf

      public static FontCharset valueOf(int value)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null