final class com.sun.webkit.network.data.DataURLConnection extends java.net.URLConnection
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.webkit.network.data.DataURLConnection
super_class: java.net.URLConnection
{
private static final java.nio.charset.Charset US_ASCII;
descriptor: Ljava/nio/charset/Charset;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String mediaType;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] data;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.InputStream inputStream;
descriptor: Ljava/io/InputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "US-ASCII"
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
putstatic com.sun.webkit.network.data.DataURLConnection.US_ASCII:Ljava/nio/charset/Charset;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0000)
Code:
stack=5, locals=15, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.net.URLConnection.<init>:(Ljava/net/URL;)V
1: aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 2
start local 2 2: aload 2
aload 2
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
3: aload 2
bipush 44
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 4: iload 3
ifge 8
5: new java.net.ProtocolException
dup
6: new java.lang.StringBuilder
dup
ldc "Invalid URL, ',' not found in: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual com.sun.webkit.network.data.DataURLConnection.getURL:()Ljava/net/URL;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.net.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: com.sun.webkit.network.data.DataURLConnection java.net.URL java.lang.String int
StackMap stack:
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 9: aload 2
iload 3
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
start local 5 10: aconst_null
astore 6
start local 6 11: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 7
start local 7 12: aconst_null
astore 8
start local 8 13: iconst_0
istore 9
start local 9 14: aload 4
ldc ";"
iconst_m1
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 10
start local 10 15: iconst_0
istore 11
start local 11 16: goto 34
17: StackMap locals: com.sun.webkit.network.data.DataURLConnection java.net.URL java.lang.String int java.lang.String java.lang.String java.lang.String java.util.LinkedList java.nio.charset.Charset int java.lang.String[] int
StackMap stack:
aload 10
iload 11
aaload
astore 12
start local 12 18: aload 12
ldc "base64"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 21
19: iconst_1
istore 9
20: goto 33
21: StackMap locals: java.lang.String
StackMap stack:
iload 11
ifne 24
aload 12
ldc "="
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 24
22: aload 12
astore 6
23: goto 33
24: StackMap locals:
StackMap stack:
aload 7
aload 12
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
25: aload 12
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc "charset="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 33
26: aload 12
bipush 8
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 8
27: goto 33
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
28: astore 13
start local 13 29: new java.io.UnsupportedEncodingException
dup
invokespecial java.io.UnsupportedEncodingException.<init>:()V
30: astore 14
start local 14 31: aload 14
aload 13
invokevirtual java.io.UnsupportedEncodingException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
32: aload 14
athrow
end local 14 end local 13 end local 12 33: StackMap locals:
StackMap stack:
iinc 11 1
StackMap locals:
StackMap stack:
34: iload 11
aload 10
arraylength
if_icmplt 17
end local 11 35: aload 6
ifnull 36
aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifeq 37
36: StackMap locals:
StackMap stack:
ldc "text/plain"
astore 6
37: StackMap locals:
StackMap stack:
aload 8
ifnonnull 41
38: getstatic com.sun.webkit.network.data.DataURLConnection.US_ASCII:Ljava/nio/charset/Charset;
astore 8
39: aload 6
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc "text/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 41
40: aload 7
new java.lang.StringBuilder
dup
ldc "charset="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.LinkedList.addFirst:(Ljava/lang/Object;)V
41: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 11
start local 11 42: aload 11
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
43: aload 7
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 13
goto 46
StackMap locals: com.sun.webkit.network.data.DataURLConnection java.net.URL java.lang.String int java.lang.String java.lang.String java.lang.String java.util.LinkedList java.nio.charset.Charset int java.lang.String[] java.lang.StringBuilder top java.util.Iterator
StackMap stack:
44: aload 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 12
start local 12 45: aload 11
bipush 59
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 12 46: StackMap locals:
StackMap stack:
aload 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 44
47: aload 0
aload 11
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield com.sun.webkit.network.data.DataURLConnection.mediaType:Ljava/lang/String;
48: iload 9
ifeq 53
49: aload 5
getstatic com.sun.webkit.network.data.DataURLConnection.US_ASCII:Ljava/nio/charset/Charset;
invokestatic com.sun.webkit.network.data.DataURLConnection.urlDecode:(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String;
astore 12
start local 12 50: aload 12
ldc "\\s+"
ldc ""
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 12
51: aload 0
invokestatic java.util.Base64.getMimeDecoder:()Ljava/util/Base64$Decoder;
aload 12
invokevirtual java.util.Base64$Decoder.decode:(Ljava/lang/String;)[B
putfield com.sun.webkit.network.data.DataURLConnection.data:[B
end local 12 52: goto 55
53: StackMap locals: com.sun.webkit.network.data.DataURLConnection java.net.URL java.lang.String int java.lang.String java.lang.String java.lang.String java.util.LinkedList java.nio.charset.Charset int java.lang.String[] java.lang.StringBuilder
StackMap stack:
aload 5
aload 8
invokestatic com.sun.webkit.network.data.DataURLConnection.urlDecode:(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String;
astore 12
start local 12 54: aload 0
aload 12
aload 8
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
putfield com.sun.webkit.network.data.DataURLConnection.data:[B
end local 12 55: StackMap locals:
StackMap stack:
aload 0
new java.io.ByteArrayInputStream
dup
aload 0
getfield com.sun.webkit.network.data.DataURLConnection.data:[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
putfield com.sun.webkit.network.data.DataURLConnection.inputStream:Ljava/io/InputStream;
56: return
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 57 0 this Lcom/sun/webkit/network/data/DataURLConnection;
0 57 1 url Ljava/net/URL;
2 57 2 content Ljava/lang/String;
4 57 3 commaPosition I
9 57 4 metadata Ljava/lang/String;
10 57 5 dataString Ljava/lang/String;
11 57 6 mimeType Ljava/lang/String;
12 57 7 parameters Ljava/util/LinkedList<Ljava/lang/String;>;
13 57 8 charset Ljava/nio/charset/Charset;
14 57 9 base64 Z
15 57 10 components [Ljava/lang/String;
16 35 11 i I
18 33 12 component Ljava/lang/String;
29 33 13 ex Ljava/lang/IllegalArgumentException;
31 33 14 ex2 Ljava/io/UnsupportedEncodingException;
42 57 11 mediaTypeBuilder Ljava/lang/StringBuilder;
45 46 12 parameter Ljava/lang/String;
50 52 12 s Ljava/lang/String;
54 55 12 s Ljava/lang/String;
Exception table:
from to target type
26 27 28 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
url
public void connect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield com.sun.webkit.network.data.DataURLConnection.connected:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/webkit/network/data/DataURLConnection;
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.webkit.network.data.DataURLConnection.inputStream:Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/webkit/network/data/DataURLConnection;
public java.lang.String getContentType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.webkit.network.data.DataURLConnection.mediaType:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/webkit/network/data/DataURLConnection;
public java.lang.String getContentEncoding();
descriptor: ()Ljava/lang/String;
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 Lcom/sun/webkit/network/data/DataURLConnection;
public int getContentLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.webkit.network.data.DataURLConnection.data:[B
ifnull 1
aload 0
getfield com.sun.webkit.network.data.DataURLConnection.data:[B
arraylength
goto 2
StackMap locals:
StackMap stack:
1: iconst_m1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/webkit/network/data/DataURLConnection;
private static java.lang.String urlDecode(java.lang.String, java.nio.charset.Charset);
descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=10, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: new java.lang.StringBuilder
dup
iload 2
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: iconst_0
istore 5
start local 5 4: goto 35
5: StackMap locals: java.lang.String java.nio.charset.Charset int java.lang.StringBuilder byte[] int
StackMap stack:
aload 0
iload 5
invokevirtual java.lang.String.charAt:(I)C
istore 6
start local 6 6: iload 6
bipush 37
if_icmpne 33
7: aload 4
ifnonnull 9
8: iload 2
iload 5
isub
iconst_3
idiv
newarray 8
astore 4
9: StackMap locals: int
StackMap stack:
iconst_0
istore 7
start local 7 10: iload 5
istore 8
start local 8 11: goto 26
12: StackMap locals: int int
StackMap stack:
aload 0
iload 5
invokevirtual java.lang.String.charAt:(I)C
istore 6
13: iload 6
bipush 37
if_icmpeq 15
14: goto 27
15: StackMap locals:
StackMap stack:
iload 5
iconst_2
iadd
iload 2
if_icmplt 18
16: iload 2
istore 8
17: goto 27
18: StackMap locals:
StackMap stack:
aload 0
iload 5
iconst_1
iadd
iload 5
iconst_3
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
bipush 16
19: invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
i2b
istore 9
start local 9 20: goto 24
end local 9 StackMap locals:
StackMap stack: java.lang.NumberFormatException
21: pop
22: iload 5
iconst_3
iadd
istore 8
23: goto 27
start local 9 24: StackMap locals: int
StackMap stack:
aload 4
iload 7
iinc 7 1
iload 9
bastore
end local 9 25: iinc 5 3
StackMap locals:
StackMap stack:
26: iload 5
iload 2
if_icmplt 12
27: StackMap locals:
StackMap stack:
iload 7
ifle 31
28: aload 3
new java.lang.String
dup
aload 4
iconst_0
iload 7
aload 1
invokespecial java.lang.String.<init>:([BIILjava/nio/charset/Charset;)V
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
29: goto 31
30: StackMap locals:
StackMap stack:
aload 3
aload 0
iload 5
iinc 5 1
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
31: StackMap locals:
StackMap stack:
iload 5
iload 8
if_icmplt 30
end local 8 end local 7 32: goto 35
33: StackMap locals:
StackMap stack:
aload 3
iload 6
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
34: iinc 5 1
end local 6 35: StackMap locals:
StackMap stack:
iload 5
iload 2
if_icmplt 5
36: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 str Ljava/lang/String;
0 37 1 charset Ljava/nio/charset/Charset;
1 37 2 length I
2 37 3 sb Ljava/lang/StringBuilder;
3 37 4 bytes [B
4 37 5 i I
6 35 6 c C
10 32 7 count I
11 32 8 proceedTo I
20 21 9 b B
24 25 9 b B
Exception table:
from to target type
18 20 21 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
str
charset
}
SourceFile: "DataURLConnection.java"
InnerClasses:
public Decoder = java.util.Base64$Decoder of java.util.Base64