Enum OCRSupportedLocale

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BG_BG
      Represents "Bulgarian (Bulgaria)" locale
      CA_CA
      Represents "Catalan (Canada)" locale
      CS_CZ
      Represents "Czech (Czech Republic)" locale
      DA_DK
      Represents "Danish (Denmark)" locale
      DE_CH
      Represents "German (Switzerland)" locale
      DE_DE
      Represents "German (Germany)" locale
      EL_GR
      Represents "Greek (Greece)" locale
      EN_GB
      Represents "English (United Kingdom)" locale
      EN_US
      Represents "English (United States)" locale.
      ES_ES
      Represents "Spanish (Spain)" locale
      ET_EE
      Represents "Estonian (Estonia)" locale
      FI_FI
      Represents "Finnish (Finland)" locale
      FR_FR
      Represents "French (France)" locale
      HR_HR
      Represents "Croatian (Croatia)" locale
      HU_HU
      Represents "Hungarian (Hungary)" locale
      IT_IT
      Represents "Italian (Italy)" locale
      IW_IL
      Represents "Hebrew (Israel)" locale
      JA_JP
      Represents "Japanese (Japan)" locale
      KO_KR
      Represents "Korean (Korea)" locale
      LT_LT
      Represents "Lithuanian (Lithuania)" locale
      LV_LV
      Represents "Latvian (Latvia)" locale
      MK_MK
      Represents "Macedonian (Macedonia)" locale
      MT_MT
      Represents "Maltese (Malta)" locale
      NB_NO
      Represents "Norwegian (Norway)" locale
      NL_NL
      Represents "Dutch (Netherlands)" locale
      NO_NO
      Represents "Norwegian (Norway)" locale
      PL_PL
      Represents "Polish (Poland)" locale
      PT_BR
      Represents "Portuguese (Brazil)" locale
      RO_RO
      Represents "Romanian (Romania)" locale
      RU_RU
      Represents "Russian (Russia)" locale
      SK_SK
      Represents "Slovak (Slovakia)" locale
      SL_SI
      Represents "Slovenian (Slovenia)" locale
      SR_SR
      Represents "Serbian (Serbia)" locale
      SV_SE
      Represents "Swedish (Sweden)" locale
      TR_TR
      Represents "Turkish (Turkey)" locale
      UK_UA
      Represents "Ukrainian (Ukraine)" locale
      ZH_CN
      Represents "Chinese (China)" locale
      ZH_HK
      Represents "Chinese (Hong Kong)" locale
    • Method Detail

      • values

        public static OCRSupportedLocale[] 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 (OCRSupportedLocale c : OCRSupportedLocale.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OCRSupportedLocale 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 name
        NullPointerException - if the argument is null
      • getLocale

        public String getLocale()
        Returns the language code of this OCRSupportedLocale
        Returns:
        language code of the locale