public class java.net.URLEncoder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.net.URLEncoder
super_class: java.lang.Object
{
static java.util.BitSet dontNeedEncoding;
descriptor: Ljava/util/BitSet;
flags: (0x0008) ACC_STATIC
static final int caseDiff;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 32
static java.lang.String dfltEncName;
descriptor: Ljava/lang/String;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: aconst_null
putstatic java.net.URLEncoder.dfltEncName:Ljava/lang/String;
1: new java.util.BitSet
dup
sipush 256
invokespecial java.util.BitSet.<init>:(I)V
putstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
2: bipush 97
istore 0
start local 0 3: goto 6
4: StackMap locals: int
StackMap stack:
getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
iload 0
invokevirtual java.util.BitSet.set:(I)V
5: iinc 0 1
StackMap locals:
StackMap stack:
6: iload 0
bipush 122
if_icmple 4
7: bipush 65
istore 0
goto 10
8: StackMap locals:
StackMap stack:
getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
iload 0
invokevirtual java.util.BitSet.set:(I)V
9: iinc 0 1
StackMap locals:
StackMap stack:
10: iload 0
bipush 90
if_icmple 8
11: bipush 48
istore 0
goto 14
12: StackMap locals:
StackMap stack:
getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
iload 0
invokevirtual java.util.BitSet.set:(I)V
13: iinc 0 1
StackMap locals:
StackMap stack:
14: iload 0
bipush 57
if_icmple 12
15: getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
bipush 32
invokevirtual java.util.BitSet.set:(I)V
16: getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
bipush 45
invokevirtual java.util.BitSet.set:(I)V
17: getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
bipush 95
invokevirtual java.util.BitSet.set:(I)V
18: getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
bipush 46
invokevirtual java.util.BitSet.set:(I)V
19: getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
bipush 42
invokevirtual java.util.BitSet.set:(I)V
20: new sun.security.action.GetPropertyAction
dup
ldc "file.encoding"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
21: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
putstatic java.net.URLEncoder.dfltEncName:Ljava/lang/String;
end local 0 22: return
LocalVariableTable:
Start End Slot Name Signature
3 22 0 i I
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 Ljava/net/URLEncoder;
public static java.lang.String encode(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getstatic java.net.URLEncoder.dfltEncName:Ljava/lang/String;
invokestatic java.net.URLEncoder.encode:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1
2: goto 4
StackMap locals: java.lang.String java.lang.String
StackMap stack: java.io.UnsupportedEncodingException
3: pop
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 s Ljava/lang/String;
1 5 1 str Ljava/lang/String;
Exception table:
from to target type
1 2 3 Class java.io.UnsupportedEncodingException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
s
public static java.lang.String encode(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=12, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: new java.lang.StringBuffer
dup
aload 0
invokevirtual java.lang.String.length:()I
invokespecial java.lang.StringBuffer.<init>:(I)V
astore 3
start local 3 2: new java.io.CharArrayWriter
dup
invokespecial java.io.CharArrayWriter.<init>:()V
astore 5
start local 5 3: aload 1
ifnonnull 5
4: new java.lang.NullPointerException
dup
ldc "charsetName"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.String java.lang.String int java.lang.StringBuffer top java.io.CharArrayWriter
StackMap stack:
aload 1
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 4
start local 4 6: goto 11
end local 4 StackMap locals:
StackMap stack: java.nio.charset.IllegalCharsetNameException
7: pop
8: new java.io.UnsupportedEncodingException
dup
aload 1
invokespecial java.io.UnsupportedEncodingException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack: java.nio.charset.UnsupportedCharsetException
pop
10: new java.io.UnsupportedEncodingException
dup
aload 1
invokespecial java.io.UnsupportedEncodingException.<init>:(Ljava/lang/String;)V
athrow
start local 4 11: StackMap locals: java.lang.String java.lang.String int java.lang.StringBuffer java.nio.charset.Charset java.io.CharArrayWriter
StackMap stack:
iconst_0
istore 6
start local 6 12: goto 48
13: StackMap locals: int
StackMap stack:
aload 0
iload 6
invokevirtual java.lang.String.charAt:(I)C
istore 7
start local 7 14: getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
iload 7
invokevirtual java.util.BitSet.get:(I)Z
ifeq 21
15: iload 7
bipush 32
if_icmpne 18
16: bipush 43
istore 7
17: iconst_1
istore 2
18: StackMap locals: int
StackMap stack:
aload 3
iload 7
i2c
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
19: iinc 6 1
20: goto 48
21: StackMap locals:
StackMap stack:
aload 5
iload 7
invokevirtual java.io.CharArrayWriter.write:(I)V
22: iload 7
ldc 55296
if_icmplt 28
iload 7
ldc 56319
if_icmpgt 28
23: iload 6
iconst_1
iadd
aload 0
invokevirtual java.lang.String.length:()I
if_icmpge 28
24: aload 0
iload 6
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
istore 8
start local 8 25: iload 8
ldc 56320
if_icmplt 28
iload 8
ldc 57343
if_icmpgt 28
26: aload 5
iload 8
invokevirtual java.io.CharArrayWriter.write:(I)V
27: iinc 6 1
end local 8 28: StackMap locals:
StackMap stack:
iinc 6 1
29: iload 6
aload 0
invokevirtual java.lang.String.length:()I
if_icmpge 30
getstatic java.net.URLEncoder.dontNeedEncoding:Ljava/util/BitSet;
aload 0
iload 6
invokevirtual java.lang.String.charAt:(I)C
dup
istore 7
invokevirtual java.util.BitSet.get:(I)Z
ifeq 21
30: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.io.CharArrayWriter.flush:()V
31: new java.lang.String
dup
aload 5
invokevirtual java.io.CharArrayWriter.toCharArray:()[C
invokespecial java.lang.String.<init>:([C)V
astore 8
start local 8 32: aload 8
aload 4
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 9
start local 9 33: iconst_0
istore 10
start local 10 34: goto 45
35: StackMap locals: java.lang.String byte[] int
StackMap stack:
aload 3
bipush 37
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
36: aload 9
iload 10
baload
iconst_4
ishr
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
istore 11
start local 11 37: iload 11
invokestatic java.lang.Character.isLetter:(C)Z
ifeq 39
38: iload 11
bipush 32
isub
i2c
istore 11
39: StackMap locals: int
StackMap stack:
aload 3
iload 11
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
40: aload 9
iload 10
baload
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
istore 11
41: iload 11
invokestatic java.lang.Character.isLetter:(C)Z
ifeq 43
42: iload 11
bipush 32
isub
i2c
istore 11
43: StackMap locals:
StackMap stack:
aload 3
iload 11
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
end local 11 44: iinc 10 1
StackMap locals:
StackMap stack:
45: iload 10
aload 9
arraylength
if_icmplt 35
end local 10 46: aload 5
invokevirtual java.io.CharArrayWriter.reset:()V
47: iconst_1
istore 2
end local 9 end local 8 end local 7 48: StackMap locals: java.lang.String java.lang.String int java.lang.StringBuffer java.nio.charset.Charset java.io.CharArrayWriter int
StackMap stack:
iload 6
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 13
end local 6 49: iload 2
ifeq 50
aload 3
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
goto 51
StackMap locals:
StackMap stack:
50: aload 0
StackMap locals:
StackMap stack: java.lang.String
51: 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 52 0 s Ljava/lang/String;
0 52 1 enc Ljava/lang/String;
1 52 2 needToChange Z
2 52 3 out Ljava/lang/StringBuffer;
6 7 4 charset Ljava/nio/charset/Charset;
11 52 4 charset Ljava/nio/charset/Charset;
3 52 5 charArrayWriter Ljava/io/CharArrayWriter;
12 49 6 i I
14 48 7 c I
25 28 8 d I
32 48 8 str Ljava/lang/String;
33 48 9 ba [B
34 46 10 j I
37 44 11 ch C
Exception table:
from to target type
5 6 7 Class java.nio.charset.IllegalCharsetNameException
5 6 9 Class java.nio.charset.UnsupportedCharsetException
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
s
enc
}
SourceFile: "URLEncoder.java"