org.mozilla.javascript.tools.SourceReader.class Maven / Gradle / Ivy
The newest version!
???? 1 ?
' O
P Q
R S T
R
U V
W
X
Y Z [
Y \
R
\
]
Y ^
_ `
a b c d e f g h
i j k
l m n
o
p
q ??
r s t ()V Code LineNumberTable LocalVariableTable this +Lorg/mozilla/javascript/tools/SourceReader;
readFileOrUrl 9(Ljava/lang/String;ZLjava/lang/String;)Ljava/lang/Object; ex Ljava/net/MalformedURLException; file Ljava/io/File; encoding Ljava/lang/String; contentType pct 6Lorg/mozilla/javascript/tools/shell/ParsedContentType; uc Ljava/net/URLConnection; result Ljava/lang/Object; strResult path convertToString Z defaultEncoding url Ljava/net/URL; is Ljava/io/InputStream; capacityHint I data [B
Exceptions u
SourceFile SourceReader.java ( ) v w java/net/URL ( x java/net/MalformedURLException java/io/File y z java/io/FileInputStream ( { | } ~ ? 4org/mozilla/javascript/tools/shell/ParsedContentType ? ? ? ? ? ? ? ? ? ? ? ) UTF-32LE UTF-32BE UTF-8 UTF-16LE UTF-16BE
file.encoding ? ? ? application/ ? ? US-ASCII java/lang/String ( ? y ? ? ? ? ? )org/mozilla/javascript/tools/SourceReader java/lang/Object java/io/IOException indexOf (I)I (Ljava/lang/String;)V length ()J (Ljava/io/File;)V openConnection ()Ljava/net/URLConnection; java/net/URLConnection getInputStream ()Ljava/io/InputStream; getContentType ()Ljava/lang/String; getEncoding getContentLength ()I org/mozilla/javascript/Kit
readStream (Ljava/io/InputStream;I)[B java/io/InputStream close java/lang/System getProperty &(Ljava/lang/String;)Ljava/lang/String;
startsWith (Ljava/lang/String;)Z ([BLjava/lang/String;)V charAt (I)C substring (I)Ljava/lang/String; ! &