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

static class CharsetRecog_sbcs.CharsetRecog_windows_1251 extends CharsetRecog_sbcs
  • Field Details

    • ngrams

      private static int[] ngrams
    • byteMap

      private static byte[] byteMap
  • Constructor Details

    • CharsetRecog_windows_1251

      CharsetRecog_windows_1251()
  • Method Details

    • getName

      public String getName()
      Description copied from class: CharsetRecognizer
      Get the IANA name of this charset.
      Specified by:
      getName in class CharsetRecog_sbcs
      Returns:
      the charset name.
    • getLanguage

      public String getLanguage()
      Description copied from class: CharsetRecognizer
      Get the ISO language code for this charset.
      Overrides:
      getLanguage in class CharsetRecognizer
      Returns:
      the language code, or null if the language cannot be determined.
    • match

      public CharsetMatch match(CharsetDetector det)
      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 class CharsetRecognizer
      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.