Class CharsetRecog_sbcs.CharsetRecog_windows_1251

    • Field Detail

      • ngrams

        private static int[] ngrams
      • byteMap

        private static byte[] byteMap
    • Constructor Detail

      • CharsetRecog_windows_1251

        CharsetRecog_windows_1251()
    • Method Detail

      • getName

        public java.lang.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 java.lang.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.