- java.lang.Object
-
- java.lang.Enum<DBaseCodePage>
-
- org.arakhne.afc.io.dbase.DBaseCodePage
-
- All Implemented Interfaces:
Serializable
,Comparable<DBaseCodePage>
public enum DBaseCodePage extends Enum<DBaseCodePage>
Describes the supported languages in DBase fields.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:52
- Author:
- Stéphane GALLAND, Olivier LAMOTTE
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- dbasefile
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOS_EAST_EUROPE
DOS Central/East Europe codepage.DOS_GREEK
DOS Greek codepage.DOS_ICELANDIC
DOS Icelandic codepage.DOS_KAMENICKY
DOS Kamenicky/Czech codepage.DOS_MAZOVIA
DOS Mazovia/Polish codepage.DOS_MULTI_LINGUAL
DOS Multilingual codepage.DOS_NORDIC
DOS Nordic codepage.DOS_RUSSIAN
DOS Russian codepage.DOS_TURKISH
DOS Turkish codepage.DOS_USA
DOS USA codepage.MACINTOSH_EAST_EUROPE
Macintosh East Europe codepage.MACINTOSH_GREEK
Macintosh Greek codepage.MACINTOSH_RUSSIAN
Macintosh Russian codepage.MACINTOSH_STANDARD
Standard Macintosh.WINDOWS_EAST_EUROPE
Windows East Europe codepage 1250.WINDOWS_GREEK
Windows Greek codepage.WINDOWS_RUSSIAN
Windows Russian codepage.WINDOWS_STANDARD
Windows Standard codepage 1252.WINDOWS_TURKISH
Windows Turkish codepage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DBaseCodePage
fromCharset(String charset)
Replies the code page which is corresponding to the given charset.static DBaseCodePage
fromCharset(Charset charset)
Replies the code page which is corresponding to the given charset.static DBaseCodePage
fromLanguageCode(byte code)
Replies the code page which is corresponding to the given dBASE language code.Charset
getChatset()
Replies the charset.byte
getLanguageCode()
Replies the dBASE language code associated to this code page.static DBaseCodePage
valueOf(String name)
Returns the enum constant of this type with the specified name.static DBaseCodePage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOS_USA
public static final DBaseCodePage DOS_USA
DOS USA codepage.
-
DOS_MULTI_LINGUAL
public static final DBaseCodePage DOS_MULTI_LINGUAL
DOS Multilingual codepage.
-
DOS_EAST_EUROPE
public static final DBaseCodePage DOS_EAST_EUROPE
DOS Central/East Europe codepage.
-
DOS_NORDIC
public static final DBaseCodePage DOS_NORDIC
DOS Nordic codepage.
-
DOS_RUSSIAN
public static final DBaseCodePage DOS_RUSSIAN
DOS Russian codepage.
-
DOS_ICELANDIC
public static final DBaseCodePage DOS_ICELANDIC
DOS Icelandic codepage.
-
DOS_KAMENICKY
public static final DBaseCodePage DOS_KAMENICKY
DOS Kamenicky/Czech codepage.
-
DOS_MAZOVIA
public static final DBaseCodePage DOS_MAZOVIA
DOS Mazovia/Polish codepage.
-
DOS_GREEK
public static final DBaseCodePage DOS_GREEK
DOS Greek codepage.
-
DOS_TURKISH
public static final DBaseCodePage DOS_TURKISH
DOS Turkish codepage.
-
WINDOWS_STANDARD
public static final DBaseCodePage WINDOWS_STANDARD
Windows Standard codepage 1252.
-
WINDOWS_EAST_EUROPE
public static final DBaseCodePage WINDOWS_EAST_EUROPE
Windows East Europe codepage 1250.
-
WINDOWS_RUSSIAN
public static final DBaseCodePage WINDOWS_RUSSIAN
Windows Russian codepage.
-
WINDOWS_TURKISH
public static final DBaseCodePage WINDOWS_TURKISH
Windows Turkish codepage.
-
WINDOWS_GREEK
public static final DBaseCodePage WINDOWS_GREEK
Windows Greek codepage.
-
MACINTOSH_STANDARD
public static final DBaseCodePage MACINTOSH_STANDARD
Standard Macintosh.
-
MACINTOSH_RUSSIAN
public static final DBaseCodePage MACINTOSH_RUSSIAN
Macintosh Russian codepage.
-
MACINTOSH_EAST_EUROPE
public static final DBaseCodePage MACINTOSH_EAST_EUROPE
Macintosh East Europe codepage.
-
MACINTOSH_GREEK
public static final DBaseCodePage MACINTOSH_GREEK
Macintosh Greek codepage.
-
-
Method Detail
-
values
public static DBaseCodePage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DBaseCodePage c : DBaseCodePage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DBaseCodePage valueOf(String name)
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
-
getLanguageCode
@Pure public byte getLanguageCode()
Replies the dBASE language code associated to this code page.- Returns:
- the dBASE language code associated to this code page.
-
getChatset
@Pure public Charset getChatset()
Replies the charset.- Returns:
- the charset or
null
if unknown
-
fromLanguageCode
@Pure public static DBaseCodePage fromLanguageCode(byte code)
Replies the code page which is corresponding to the given dBASE language code.- Parameters:
code
- the language code.- Returns:
- the code page, or
null
if not found.
-
fromCharset
@Pure public static DBaseCodePage fromCharset(Charset charset)
Replies the code page which is corresponding to the given charset.- Parameters:
charset
- the character set.- Returns:
- the code page, or
null
if not found.
-
fromCharset
@Pure public static DBaseCodePage fromCharset(String charset)
Replies the code page which is corresponding to the given charset.- Parameters:
charset
- the character set.- Returns:
- the code page, or
null
if not found.
-
-