com.groupbyinc.flux.common.github.mustachejava.FallbackMustacheFactory.class Maven / Gradle / Ivy
???? 4 ? Fcom/groupbyinc/flux/common/github/mustachejava/FallbackMustacheFactory Ecom/groupbyinc/flux/common/github/mustachejava/DefaultMustacheFactory FallbackMustacheFactory.java
resourceRoots [Ljava/lang/Object; '(Ljava/lang/String;Ljava/lang/String;)V java/lang/Object
([Ljava/lang/Object;)V
this HLcom/groupbyinc/flux/common/github/mustachejava/FallbackMustacheFactory; resourceRoot Ljava/lang/String; fallbackRoot (Ljava/io/File;Ljava/io/File;)V fileRoot Ljava/io/File; ()V
java/util/ArrayList
java/util/List java/lang/String / " endsWith (Ljava/lang/String;)Z $ %
! & java/lang/StringBuilder (
) append -(Ljava/lang/String;)Ljava/lang/StringBuilder; + ,
) - toString ()Ljava/lang/String; / 0
) 1 add (Ljava/lang/Object;)Z 3 4 5 java/io/File 7 exists ()Z 9 :
8 ; @com/groupbyinc/flux/common/github/mustachejava/MustacheException = -(Ljava/lang/Object;)Ljava/lang/StringBuilder; + ?
) @ does not exist B (Ljava/lang/String;)V D
> E isDirectory G :
8 H is not a directory J Invalid constructor parameter: L
1 toArray ()[Ljava/lang/Object; O P Q S resourceObj Ljava/lang/Object; newResourceRoots $Ljava/util/List; Ljava/util/List; getReader $(Ljava/lang/String;)Ljava/io/Reader; java/io/FileNotFoundException \ java/lang/Exception ^ java/lang/Thread `
currentThread ()Ljava/lang/Thread; b c
a d getContextClassLoader ()Ljava/lang/ClassLoader; f g
a h java/lang/ClassLoader j getResourceAsStream )(Ljava/lang/String;)Ljava/io/InputStream; l m
k n java/io/InputStream p
8 r #(Ljava/io/File;Ljava/lang/String;)V t
8 u
8 E isFile x :
8 y java/io/FileInputStream { (Ljava/io/File;)V }
| ~ Found file, could not open: ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ?
> ? Hcom/groupbyinc/flux/common/github/mustachejava/MustacheNotFoundException ?
? E java/io/BufferedReader ? java/io/InputStreamReader ? UTF-8 ? *(Ljava/io/InputStream;Ljava/lang/String;)V ?
? ? (Ljava/io/Reader;)V ?
? ?
? ? ccl Ljava/lang/ClassLoader; file e Ljava/io/FileNotFoundException; is Ljava/io/InputStream; Ljava/lang/Exception; resourceName
lastException Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
SourceFile ! ? S *? Y+SY,S? ? ? ?
? S *? Y+SY,S? ? ? ?
&