Top Description Fields Constructors Methods
org.apache.poi.common.usermodel.fonts

public final Enum FontCharset

extends Enum<FontCharset>
Class Inheritance
Annotations
@SuppressWarnings:java:S1192
Imports
java.nio.charset.Charset, .UnsupportedCharsetException, org.apache.logging.log4j.LogManager, .Logger

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

Field Summary

Modifier and TypeField and Description
private static FontCharset[]
public static final FontCharset
ANSI

Specifies the English character set.

public static final FontCharset
ARABIC

Specifies the Arabic character set.

public static final FontCharset
BALTIC

Specifies the Baltic (Northeastern European) character set.

private Charset
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.

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.

public static final FontCharset
EASTEUROPE

Specifies a Eastern European character set.

public static final FontCharset
GB2312

Specifies the "simplified" Chinese character set for People's Republic of China.

public static final FontCharset
GREEK

Specifies the Greek character set.

public static final FontCharset
HANGUL

Also spelled "Hangeul".

public static final FontCharset
HEBREW

Specifies the Hebrew character set.

public static final FontCharset
JOHAB

Also spelled "Johap".

public static final FontCharset
MAC

Specifies the Apple Macintosh character set.

private int
public static final FontCharset
OEM

Specifies a mapping to one of the OEM code pages, according to the current system locale setting.

public static final FontCharset
RUSSIAN

Specifies the Russian Cyrillic character set.

public static final FontCharset
SHIFTJIS

Specifies the Japanese character set.

public static final FontCharset
SYMBOL

Specifies a character set of symbols.

public static final FontCharset
THAI

Specifies the Thai character set.

public static final FontCharset
TURKISH

Specifies the Turkish character set.

public static final FontCharset
VIETNAMESE

Specifies the Vietnamese character set.

Constructor Summary

AccessConstructor and Description
private
FontCharset(int flag, String javaCharsetName)

Method Summary

Modifier and TypeMethod and Description
public Charset

Returns:

charset for the font or null if there is no matching charset or if the charset is a "default"
getCharset
()

public int
public static FontCharset
public static FontCharset
valueOf(int value)

public static FontCharset[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

_tableback to summary
private static FontCharset[] _table
ANSIback to summary
public static final FontCharset ANSI

Specifies the English character set.

ARABICback to summary
public static final FontCharset ARABIC

Specifies the Arabic character set.

BALTICback to summary
public static final FontCharset BALTIC

Specifies the Baltic (Northeastern European) character set.

charsetback to summary
private Charset charset
CHINESEBIG5back to summary
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.

DEFAULTback to summary
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.

EASTEUROPEback to summary
public static final FontCharset EASTEUROPE

Specifies a Eastern European character set.

GB2312back to summary
public static final FontCharset GB2312

Specifies the "simplified" Chinese character set for People's Republic of China.

GREEKback to summary
public static final FontCharset GREEK

Specifies the Greek character set.

HANGULback to summary
public static final FontCharset HANGUL

Also spelled "Hangeul". Specifies the Hangul Korean character set.

HEBREWback to summary
public static final FontCharset HEBREW

Specifies the Hebrew character set.

JOHABback to summary
public static final FontCharset JOHAB

Also spelled "Johap". Specifies the Johab Korean character set.

MACback to summary
public static final FontCharset MAC

Specifies the Apple Macintosh character set.

nativeIdback to summary
private int nativeId
OEMback to summary
public static final FontCharset OEM

Specifies a mapping to one of the OEM code pages, according to the current system locale setting.

RUSSIANback to summary
public static final FontCharset RUSSIAN

Specifies the Russian Cyrillic character set.

SHIFTJISback to summary
public static final FontCharset SHIFTJIS

Specifies the Japanese character set.

SYMBOLback to summary
public static final FontCharset SYMBOL

Specifies a character set of symbols.

THAIback to summary
public static final FontCharset THAI

Specifies the Thai character set.

TURKISHback to summary
public static final FontCharset TURKISH

Specifies the Turkish character set.

VIETNAMESEback to summary
public static final FontCharset VIETNAMESE

Specifies the Vietnamese character set.

Constructor Detail

FontCharsetback to summary
private FontCharset(int flag, String javaCharsetName)

Method Detail

getCharsetback to summary
public Charset getCharset()
Returns:Charset

charset for the font or null if there is no matching charset or if the charset is a "default"

getNativeIdback to summary
public int getNativeId()
valueOfback to summary
public static FontCharset valueOf(String name)
valueOfback to summary
public static FontCharset valueOf(int value)
valuesback to summary
public static FontCharset[] values()