com.groupbyinc.flux.common.github.mustachejava.resolver.ClasspathResolver.class Maven / Gradle / Ivy
???? 4 j Icom/groupbyinc/flux/common/github/mustachejava/resolver/ClasspathResolver java/lang/Object ?com/groupbyinc/flux/common/github/mustachejava/MustacheResolver ClasspathResolver.java resourceRoot Ljava/lang/String; ()V
this KLcom/groupbyinc/flux/common/github/mustachejava/resolver/ClasspathResolver; (Ljava/lang/String;)V getReader $(Ljava/lang/String;)Ljava/io/Reader; java/lang/Thread
currentThread ()Ljava/lang/Thread;
getContextClassLoader ()Ljava/lang/ClassLoader;
!concatResourceRootAndResourceName &(Ljava/lang/String;)Ljava/lang/String;
! java/lang/ClassLoader # getResourceAsStream )(Ljava/lang/String;)Ljava/io/InputStream; % &
$ ' java/lang/Class ) getClassLoader +
* , java/lang/String . java/io/InputStream 0 java/io/BufferedReader 2 java/io/InputStreamReader 4 !java/nio/charset/StandardCharsets 6 UTF_8 Ljava/nio/charset/Charset; 8 9 7 : 2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
<
5 = (Ljava/io/Reader;)V
?
3 @ classLoader Ljava/lang/ClassLoader; resourceName ccl fullResourceName is Ljava/io/InputStream; / I
startsWith (Ljava/lang/String;)Z K L
/ M endsWith O L
/ P java/lang/StringBuilder R
S length ()I U V
/ W substring (II)Ljava/lang/String; Y Z
/ [ append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ] ^
S _ toString ()Ljava/lang/String; a b
S c Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile !
e <