com.groupbyinc.flux.common.apache.logging.log4j.util.PropertiesUtil.class Maven / Gradle / Ivy
???? 3( Ccom/groupbyinc/flux/common/apache/logging/log4j/util/PropertiesUtil java/lang/Object PropertiesUtil.java LOG4J_PROPERTIES ELcom/groupbyinc/flux/common/apache/logging/log4j/util/PropertiesUtil; props Ljava/util/Properties; (Ljava/util/Properties;)V ()V
this (Ljava/lang/String;)V java/lang/Throwable java/io/IOException java/util/Properties
?com/groupbyinc/flux/common/apache/logging/log4j/util/LoaderUtil
findResources *(Ljava/lang/String;)Ljava/util/Collection;
java/util/Collection iterator ()Ljava/util/Iterator; " # ! $ java/lang/String & java/util/Iterator ( hasNext ()Z * + ) , next ()Ljava/lang/Object; . / ) 0 java/net/URL 2
openStream ()Ljava/io/InputStream; 4 5
3 6 load (Ljava/io/InputStream;)V 8 9
: java/io/InputStream < close >
= ?
addSuppressed (Ljava/lang/Throwable;)V A B
C java/lang/StringBuilder E
F
Unable to read H append -(Ljava/lang/String;)Ljava/lang/StringBuilder; J K
F L toString ()Ljava/lang/String; N O
3 P
F P Dcom/groupbyinc/flux/common/apache/logging/log4j/util/LowLevelLogUtil S logException *(Ljava/lang/String;Ljava/lang/Throwable;)V U V
T W x2 Ljava/lang/Throwable; in Ljava/io/InputStream; ioe Ljava/io/IOException; url Ljava/net/URL; i$ Ljava/util/Iterator; propertiesFileName Ljava/lang/String;
properties loadClose ?(Ljava/io/InputStream;Ljava/lang/Object;)Ljava/util/Properties; Unable to close h -(Ljava/lang/Object;)Ljava/lang/StringBuilder; J j
F k e source Ljava/lang/Object;
getProperties G()Lcom/groupbyinc/flux/common/apache/logging/log4j/util/PropertiesUtil; r getBooleanProperty (Ljava/lang/String;)Z (Ljava/lang/String;Z)Z t v
w name getStringProperty &(Ljava/lang/String;)Ljava/lang/String; z {
| true ~ equalsIgnoreCase ? u
' ? defaultValue Z prop getCharsetProperty .(Ljava/lang/String;)Ljava/nio/charset/Charset; java/nio/charset/Charset ? defaultCharset ()Ljava/nio/charset/Charset; ? ?
? ? H(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset; ? ?
? forName ? ?
? ? Ljava/nio/charset/Charset; getDoubleProperty (Ljava/lang/String;D)D java/lang/Exception ? java/lang/Double ? parseDouble (Ljava/lang/String;)D ? ?
? ? ignored Ljava/lang/Exception; D getIntegerProperty (Ljava/lang/String;I)I java/lang/Integer ? parseInt (Ljava/lang/String;)I ? ?
? ? I getLongProperty (Ljava/lang/String;J)J java/lang/Long ? parseLong (Ljava/lang/String;)J ? ?
? ? J java/lang/SecurityException ? java/lang/System ? getProperty ? {
? ?
? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; getSystemProperties ()Ljava/util/Properties; p ?
? ?
? #Unable to access system properties. ? ex Ljava/lang/SecurityException;
extractSubset @(Ljava/util/Properties;Ljava/lang/String;)Ljava/util/Properties; length ()I ? ?
' ? charAt (I)C ? ?
' ? (C)Ljava/lang/StringBuilder; J ?
F ? java/util/ArrayList ?
?
stringPropertyNames ()Ljava/util/Set; ? ?
?
java/util/Set ? ? $ java/util/List ?
startsWith ? u
' ? substring (I)Ljava/lang/String; ? ?
' ? setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; ? ?
? add (Ljava/lang/Object;)Z ? ? ? ? ? $ remove &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? key prefix subset
prefixToMatch keys $Ljava/util/List; Ljava/util/List; partitionOnCommonPrefixes '(Ljava/util/Properties;)Ljava/util/Map; &java/util/concurrent/ConcurrentHashMap ?
?
java/util/Map indexOf (I)I
' (II)Ljava/lang/String; ?
' containsKey ?
put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
get ? parts 9Ljava/util/Map; Ljava/util/Map; isOsWindows os.name Windows log4j2.component.properties
Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable Signature Q(Ljava/util/Properties;)Ljava/util/Map;
SourceFile 1
F
*? *+? ? !
" / 0 1
!
?*? ? Y? M+? ? % N-? - ? ?-? 1 ? 3:? 7::,? ;? U? ? @? H:? D? <? @? 4::?:? !? ? @? : ? D? ? @?? !:? FY? GI? M? Q? M? R? X??d*,? ? D I L 4 : ` 4 : i u z } ` k i * ? ? ! \ N Y Z Y Z 1 ` [ \ ? ] ^ * ? _ ` ? a b ? ? c d ? e " : 9 : ; * <