public final class jdk.nashorn.api.scripting.URLReader extends java.io.Reader
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.api.scripting.URLReader
super_class: java.io.Reader
{
private final java.net.URL url;
descriptor: Ljava/net/URL;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.charset.Charset cs;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.io.Reader reader;
descriptor: Ljava/io/Reader;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokespecial jdk.nashorn.api.scripting.URLReader.<init>:(Ljava/net/URL;Ljava/nio/charset/Charset;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/URLReader;
0 2 1 url Ljava/net/URL;
MethodParameters:
Name Flags
url final
public void <init>(java.net.URL, java.lang.String);
descriptor: (Ljava/net/URL;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokespecial jdk.nashorn.api.scripting.URLReader.<init>:(Ljava/net/URL;Ljava/nio/charset/Charset;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/URLReader;
0 2 1 url Ljava/net/URL;
0 2 2 charsetName Ljava/lang/String;
MethodParameters:
Name Flags
url final
charsetName final
public void <init>(java.net.URL, java.nio.charset.Charset);
descriptor: (Ljava/net/URL;Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.Reader.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.URL
putfield jdk.nashorn.api.scripting.URLReader.url:Ljava/net/URL;
2: aload 0
aload 2
putfield jdk.nashorn.api.scripting.URLReader.cs:Ljava/nio/charset/Charset;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/scripting/URLReader;
0 4 1 url Ljava/net/URL;
0 4 2 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
url final
cs final
public int read(char[], int, int);
descriptor: ([CII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual jdk.nashorn.api.scripting.URLReader.getReader:()Ljava/io/Reader;
aload 1
iload 2
iload 3
invokevirtual java.io.Reader.read:([CII)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/URLReader;
0 1 1 cbuf [C
0 1 2 off I
0 1 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cbuf final
off final
len final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.api.scripting.URLReader.getReader:()Ljava/io/Reader;
invokevirtual java.io.Reader.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/URLReader;
Exceptions:
throws java.io.IOException
public java.net.URL getURL();
descriptor: ()Ljava/net/URL;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.scripting.URLReader.url:Ljava/net/URL;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/URLReader;
public java.nio.charset.Charset getCharset();
descriptor: ()Ljava/nio/charset/Charset;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.scripting.URLReader.cs:Ljava/nio/charset/Charset;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/URLReader;
private java.io.Reader getReader();
descriptor: ()Ljava/io/Reader;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.scripting.URLReader.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield jdk.nashorn.api.scripting.URLReader.reader:Ljava/io/Reader;
ifnonnull 3
2: aload 0
new java.io.CharArrayReader
dup
aload 0
getfield jdk.nashorn.api.scripting.URLReader.url:Ljava/net/URL;
aload 0
getfield jdk.nashorn.api.scripting.URLReader.cs:Ljava/nio/charset/Charset;
invokestatic jdk.nashorn.internal.runtime.Source.readFully:(Ljava/net/URL;Ljava/nio/charset/Charset;)[C
invokespecial java.io.CharArrayReader.<init>:([C)V
putfield jdk.nashorn.api.scripting.URLReader.reader:Ljava/io/Reader;
3: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
4: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.api.scripting.URLReader.reader:Ljava/io/Reader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nashorn/api/scripting/URLReader;
Exception table:
from to target type
1 4 5 any
5 6 5 any
Exceptions:
throws java.io.IOException
}
SourceFile: "URLReader.java"