Package com.ibm.icu.text
Class CharsetRecog_sbcs.CharsetRecog_windows_1251
java.lang.Object
com.ibm.icu.text.CharsetRecognizer
com.ibm.icu.text.CharsetRecog_sbcs
com.ibm.icu.text.CharsetRecog_sbcs.CharsetRecog_windows_1251
- Enclosing class:
- CharsetRecog_sbcs
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ibm.icu.text.CharsetRecog_sbcs
CharsetRecog_sbcs.CharsetRecog_8859_1, CharsetRecog_sbcs.CharsetRecog_8859_2, CharsetRecog_sbcs.CharsetRecog_8859_5, CharsetRecog_sbcs.CharsetRecog_8859_5_ru, CharsetRecog_sbcs.CharsetRecog_8859_6, CharsetRecog_sbcs.CharsetRecog_8859_6_ar, CharsetRecog_sbcs.CharsetRecog_8859_7, CharsetRecog_sbcs.CharsetRecog_8859_7_el, CharsetRecog_sbcs.CharsetRecog_8859_8, CharsetRecog_sbcs.CharsetRecog_8859_8_he, CharsetRecog_sbcs.CharsetRecog_8859_8_I_he, CharsetRecog_sbcs.CharsetRecog_8859_9, CharsetRecog_sbcs.CharsetRecog_8859_9_tr, CharsetRecog_sbcs.CharsetRecog_IBM420_ar, CharsetRecog_sbcs.CharsetRecog_IBM420_ar_ltr, CharsetRecog_sbcs.CharsetRecog_IBM420_ar_rtl, CharsetRecog_sbcs.CharsetRecog_IBM424_he, CharsetRecog_sbcs.CharsetRecog_IBM424_he_ltr, CharsetRecog_sbcs.CharsetRecog_IBM424_he_rtl, CharsetRecog_sbcs.CharsetRecog_KOI8_R, CharsetRecog_sbcs.CharsetRecog_windows_1251, CharsetRecog_sbcs.CharsetRecog_windows_1256, CharsetRecog_sbcs.NGramParser, CharsetRecog_sbcs.NGramParser_IBM420, CharsetRecog_sbcs.NGramsPlusLang
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the ISO language code for this charset.getName()
Get the IANA name of this charset.match
(CharsetDetector det) Test the match of this charset with the input text data which is obtained via the CharsetDetector object.Methods inherited from class com.ibm.icu.text.CharsetRecog_sbcs
match, match, matchIBM420
-
Field Details
-
ngrams
private static int[] ngrams -
byteMap
private static byte[] byteMap
-
-
Constructor Details
-
CharsetRecog_windows_1251
CharsetRecog_windows_1251()
-
-
Method Details
-
getName
Description copied from class:CharsetRecognizer
Get the IANA name of this charset.- Specified by:
getName
in classCharsetRecog_sbcs
- Returns:
- the charset name.
-
getLanguage
Description copied from class:CharsetRecognizer
Get the ISO language code for this charset.- Overrides:
getLanguage
in classCharsetRecognizer
- Returns:
- the language code, or
null
if the language cannot be determined.
-
match
Description copied from class:CharsetRecognizer
Test the match of this charset with the input text data which is obtained via the CharsetDetector object.- Specified by:
match
in classCharsetRecognizer
- Parameters:
det
- The CharsetDetector, which contains the input text to be checked for being in this charset.- Returns:
- A CharsetMatch object containing details of match with this charset, or null if there was no match.
-