Class ICUConfig


  • public class ICUConfig
    extends java.lang.Object
    ICUConfig is a class used for accessing ICU4J runtime configuration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Properties CONFIG_PROPS  
      static java.lang.String CONFIG_PROPS_FILE  
    • Constructor Summary

      Constructors 
      Constructor Description
      ICUConfig()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String get​(java.lang.String name)
      Get ICU configuration property value for the given name.
      static java.lang.String get​(java.lang.String name, java.lang.String def)
      Get ICU configuration property value for the given name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONFIG_PROPS_FILE

        public static final java.lang.String CONFIG_PROPS_FILE
        See Also:
        Constant Field Values
      • CONFIG_PROPS

        private static final java.util.Properties CONFIG_PROPS
    • Constructor Detail

      • ICUConfig

        public ICUConfig()
    • Method Detail

      • get

        public static java.lang.String get​(java.lang.String name)
        Get ICU configuration property value for the given name.
        Parameters:
        name - The configuration property name
        Returns:
        The configuration property value, or null if it does not exist.
      • get

        public static java.lang.String get​(java.lang.String name,
                                           java.lang.String def)
        Get ICU configuration property value for the given name.
        Parameters:
        name - The configuration property name
        def - The default value
        Returns:
        The configuration property value. If the property does not exist, def is returned.