
com.groupbyinc.flux.common.github.mustachejava.resolver.FileSystemResolver.class Maven / Gradle / Ivy
???? 4 { Jcom/groupbyinc/flux/common/github/mustachejava/resolver/FileSystemResolver java/lang/Object ?com/groupbyinc/flux/common/github/mustachejava/MustacheResolver FileSystemResolver.java fileRoot Ljava/io/File; ()V
this LLcom/groupbyinc/flux/common/github/mustachejava/resolver/FileSystemResolver; (Ljava/io/File;)V java/io/File exists ()Z
@com/groupbyinc/flux/common/github/mustachejava/MustacheException java/lang/StringBuilder
append -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
does not exist " -(Ljava/lang/String;)Ljava/lang/StringBuilder; $
% toString ()Ljava/lang/String; ' (
) (Ljava/lang/String;)V
+
, isDirectory .
/ is not a directory 1 getReader $(Ljava/lang/String;)Ljava/io/Reader; java/io/IOException 5
, java/io/InputStream 8 #(Ljava/io/File;Ljava/lang/String;)V
:
; isFile =
> @ getCanonicalFile ()Ljava/io/File; B C
D
getParentFile F C
G equals (Ljava/lang/Object;)Z I J
K File not under root: M getAbsolutePath O (
P java/io/FileInputStream R
S T java/lang/String V Found file, could not open: X *(Ljava/lang/String;Ljava/lang/Throwable;)V
Z
[ java/io/BufferedReader ] java/io/InputStreamReader _ !java/nio/charset/StandardCharsets a UTF_8 Ljava/nio/charset/Charset; c d b e 2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
g
` h (Ljava/io/Reader;)V
j
^ k checkRoot parent e Ljava/io/IOException; resourceName Ljava/lang/String; is Ljava/io/InputStream; file Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile !
v <