public abstract class sun.misc.Resource
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.misc.Resource
super_class: java.lang.Object
{
private java.io.InputStream cis;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Resource;
public abstract java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.net.URL getURL();
descriptor: ()Ljava/net/URL;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.net.URL getCodeSourceURL();
descriptor: ()Ljava/net/URL;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public abstract int getContentLength();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
private synchronized java.io.InputStream cachedInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.misc.Resource.cis:Ljava/io/InputStream;
ifnonnull 2
1: aload 0
aload 0
invokevirtual sun.misc.Resource.getInputStream:()Ljava/io/InputStream;
putfield sun.misc.Resource.cis:Ljava/io/InputStream;
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Resource.cis:Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/Resource;
Exceptions:
throws java.io.IOException
public byte[] getBytes();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=1
start local 0 0: aload 0
invokevirtual sun.misc.Resource.cachedInputStream:()Ljava/io/InputStream;
astore 2
start local 2 1: invokestatic java.lang.Thread.interrupted:()Z
istore 3
start local 3 2: StackMap locals: sun.misc.Resource top java.io.InputStream int
StackMap stack:
aload 0
invokevirtual sun.misc.Resource.getContentLength:()I
istore 4
start local 4 3: goto 8
end local 4 4: StackMap locals:
StackMap stack: java.io.InterruptedIOException
pop
5: invokestatic java.lang.Thread.interrupted:()Z
pop
6: iconst_1
istore 3
7: goto 2
start local 4 8: StackMap locals: int
StackMap stack:
iconst_0
newarray 8
astore 1
start local 1 9: iload 4
iconst_m1
if_icmpne 10
ldc 2147483647
istore 4
10: StackMap locals: sun.misc.Resource byte[] java.io.InputStream int int
StackMap stack:
iconst_0
istore 5
start local 5 11: goto 31
12: StackMap locals: int
StackMap stack:
iload 5
aload 1
arraylength
if_icmplt 17
13: iload 4
iload 5
isub
aload 1
arraylength
sipush 1024
iadd
invokestatic java.lang.Math.min:(II)I
istore 6
start local 6 14: aload 1
arraylength
iload 5
iload 6
iadd
if_icmpge 18
15: aload 1
iload 5
iload 6
iadd
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 1
16: goto 18
end local 6 17: StackMap locals:
StackMap stack:
aload 1
arraylength
iload 5
isub
istore 6
start local 6 18: StackMap locals: int
StackMap stack:
iconst_0
istore 7
start local 7 19: aload 2
aload 1
iload 5
iload 6
invokevirtual java.io.InputStream.read:([BII)I
istore 7
20: goto 24
StackMap locals: sun.misc.Resource byte[] java.io.InputStream int int int int int
StackMap stack: java.io.InterruptedIOException
21: pop
22: invokestatic java.lang.Thread.interrupted:()Z
pop
23: iconst_1
istore 3
24: StackMap locals:
StackMap stack:
iload 7
ifge 30
25: iload 4
ldc 2147483647
if_icmpeq 27
26: new java.io.EOFException
dup
ldc "Detect premature EOF"
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
aload 1
arraylength
iload 5
if_icmpeq 42
28: aload 1
iload 5
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 1
29: goto 42
30: StackMap locals:
StackMap stack:
iload 5
iload 7
iadd
istore 5
end local 7 end local 6 31: StackMap locals:
StackMap stack:
iload 5
iload 4
if_icmplt 12
end local 5 32: goto 42
end local 1 StackMap locals: sun.misc.Resource top java.io.InputStream int int
StackMap stack: java.lang.Throwable
33: astore 8
34: aload 2
invokevirtual java.io.InputStream.close:()V
35: goto 39
StackMap locals: sun.misc.Resource top java.io.InputStream int int top top top java.lang.Throwable
StackMap stack: java.io.InterruptedIOException
36: pop
37: iconst_1
istore 3
goto 39
38: StackMap locals:
StackMap stack: java.io.IOException
pop
39: StackMap locals:
StackMap stack:
iload 3
ifeq 41
40: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
41: StackMap locals:
StackMap stack:
aload 8
athrow
start local 1 42: StackMap locals: sun.misc.Resource byte[] java.io.InputStream int int
StackMap stack:
aload 2
invokevirtual java.io.InputStream.close:()V
43: goto 47
StackMap locals:
StackMap stack: java.io.InterruptedIOException
44: pop
45: iconst_1
istore 3
goto 47
46: StackMap locals:
StackMap stack: java.io.IOException
pop
47: StackMap locals:
StackMap stack:
iload 3
ifeq 49
48: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
49: StackMap locals:
StackMap stack:
aload 1
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 50 0 this Lsun/misc/Resource;
9 33 1 b [B
42 50 1 b [B
1 50 2 in Ljava/io/InputStream;
2 50 3 isInterrupted Z
3 4 4 len I
8 50 4 len I
11 32 5 pos I
14 17 6 bytesToRead I
18 31 6 bytesToRead I
19 31 7 cc I
Exception table:
from to target type
2 3 4 Class java.io.InterruptedIOException
19 20 21 Class java.io.InterruptedIOException
8 33 33 any
34 35 36 Class java.io.InterruptedIOException
34 35 38 Class java.io.IOException
42 43 44 Class java.io.InterruptedIOException
42 43 46 Class java.io.IOException
Exceptions:
throws java.io.IOException
public java.nio.ByteBuffer getByteBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.misc.Resource.cachedInputStream:()Ljava/io/InputStream;
astore 1
start local 1 1: aload 1
instanceof sun.nio.ByteBuffered
ifeq 3
2: aload 1
checkcast sun.nio.ByteBuffered
invokeinterface sun.nio.ByteBuffered.getByteBuffer:()Ljava/nio/ByteBuffer;
areturn
3: StackMap locals: java.io.InputStream
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/misc/Resource;
1 4 1 in Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
public java.util.jar.Manifest getManifest();
descriptor: ()Ljava/util/jar/Manifest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Resource;
Exceptions:
throws java.io.IOException
public java.security.cert.Certificate[] getCertificates();
descriptor: ()[Ljava/security/cert/Certificate;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Resource;
public java.security.CodeSigner[] getCodeSigners();
descriptor: ()[Ljava/security/CodeSigner;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Resource;
}
SourceFile: "Resource.java"