public class com.sun.xml.internal.rngom.util.Uri
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.xml.internal.rngom.util.Uri
super_class: java.lang.Object
{
private static java.lang.String utf8;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.String HEX_DIGITS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "0123456789abcdef"
private static final java.lang.String excluded;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "<>\"{}|\\^`"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "UTF-8"
putstatic com.sun.xml.internal.rngom.util.Uri.utf8:Ljava/lang/String;
1: return
LocalVariableTable:
Start End Slot Name Signature
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 Lcom/sun/xml/internal/rngom/util/Uri;
public static boolean isValid(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.sun.xml.internal.rngom.util.Uri.isValidPercent:(Ljava/lang/String;)Z
ifeq 1
aload 0
invokestatic com.sun.xml.internal.rngom.util.Uri.isValidFragment:(Ljava/lang/String;)Z
ifeq 1
aload 0
invokestatic com.sun.xml.internal.rngom.util.Uri.isValidScheme:(Ljava/lang/String;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static java.lang.String escapeDisallowedChars(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: StackMap locals: java.lang.StringBuffer int int
StackMap stack:
iload 3
istore 4
start local 4 4: StackMap locals: int
StackMap stack:
iload 4
iload 2
if_icmpne 7
5: iload 3
ifne 11
6: aload 0
areturn
7: StackMap locals:
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
invokestatic com.sun.xml.internal.rngom.util.Uri.isExcluded:(C)Z
ifeq 9
8: goto 11
9: StackMap locals:
StackMap stack:
iinc 4 1
10: goto 4
11: StackMap locals:
StackMap stack:
aload 1
ifnonnull 13
12: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
13: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmple 16
14: aload 1
aload 0
iload 3
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
15: iload 4
istore 3
16: StackMap locals:
StackMap stack:
iload 4
iload 2
if_icmpne 18
17: goto 39
18: StackMap locals:
StackMap stack:
iinc 4 1
goto 20
StackMap locals:
StackMap stack:
19: iinc 4 1
StackMap locals:
StackMap stack:
20: iload 4
iload 2
if_icmpge 21
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
invokestatic com.sun.xml.internal.rngom.util.Uri.isExcluded:(C)Z
ifne 19
21: StackMap locals:
StackMap stack:
aload 0
iload 3
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 22: aload 5
getstatic com.sun.xml.internal.rngom.util.Uri.utf8:Ljava/lang/String;
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 6
start local 6 23: goto 30
end local 6 24: StackMap locals: java.lang.String java.lang.StringBuffer int int int java.lang.String
StackMap stack: java.io.UnsupportedEncodingException
pop
25: ldc "UTF8"
putstatic com.sun.xml.internal.rngom.util.Uri.utf8:Ljava/lang/String;
26: aload 5
getstatic com.sun.xml.internal.rngom.util.Uri.utf8:Ljava/lang/String;
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 6
start local 6 27: goto 30
end local 6 28: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
pop
29: aload 0
areturn
start local 6 30: StackMap locals: byte[]
StackMap stack:
iconst_0
istore 7
start local 7 31: goto 36
32: StackMap locals: int
StackMap stack:
aload 1
bipush 37
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
33: aload 1
ldc "0123456789abcdef"
aload 6
iload 7
baload
sipush 255
iand
iconst_4
ishr
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
34: aload 1
ldc "0123456789abcdef"
aload 6
iload 7
baload
bipush 15
iand
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
35: iinc 7 1
StackMap locals:
StackMap stack:
36: iload 7
aload 6
arraylength
if_icmplt 32
end local 7 37: iload 4
istore 3
end local 6 end local 5 end local 4 38: goto 3
39: StackMap locals: java.lang.String java.lang.StringBuffer int int
StackMap stack:
aload 1
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 s Ljava/lang/String;
1 40 1 buf Ljava/lang/StringBuffer;
2 40 2 len I
3 40 3 done I
4 38 4 i I
22 38 5 tem Ljava/lang/String;
23 24 6 bytes [B
27 28 6 bytes [B
30 38 6 bytes [B
31 37 7 j I
Exception table:
from to target type
22 23 24 Class java.io.UnsupportedEncodingException
26 27 28 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
s
private static boolean isExcluded(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 32
if_icmple 1
iload 0
bipush 127
if_icmpge 1
ldc "<>\"{}|\\^`"
iload 0
invokevirtual java.lang.String.indexOf:(I)I
ifge 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
private static boolean isAlpha(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 97
iload 0
if_icmpgt 1
iload 0
bipush 122
if_icmple 3
StackMap locals:
StackMap stack:
1: bipush 65
iload 0
if_icmpgt 2
iload 0
bipush 90
if_icmple 3
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 c C
MethodParameters:
Name Flags
c
private static boolean isHexDigit(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 97
iload 0
if_icmpgt 1
iload 0
bipush 102
if_icmple 3
StackMap locals:
StackMap stack:
1: bipush 65
iload 0
if_icmpgt 2
iload 0
bipush 70
if_icmple 3
StackMap locals:
StackMap stack:
2: iload 0
invokestatic com.sun.xml.internal.rngom.util.Uri.isDigit:(C)Z
ifne 3
iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 c C
MethodParameters:
Name Flags
c
private static boolean isDigit(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 48
iload 0
if_icmpgt 1
iload 0
bipush 57
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
private static boolean isSchemeChar(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic com.sun.xml.internal.rngom.util.Uri.isAlpha:(C)Z
ifne 1
iload 0
invokestatic com.sun.xml.internal.rngom.util.Uri.isDigit:(C)Z
ifne 1
iload 0
bipush 43
if_icmpeq 1
iload 0
bipush 45
if_icmpeq 1
iload 0
bipush 46
if_icmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
private static boolean isValidPercent(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 10
3: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
bipush 37
if_icmpne 9
4: iload 2
iconst_2
iadd
iload 1
if_icmplt 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
invokestatic com.sun.xml.internal.rngom.util.Uri.isHexDigit:(C)Z
ifeq 8
7: aload 0
iload 2
iconst_2
iadd
invokevirtual java.lang.String.charAt:(I)C
invokestatic com.sun.xml.internal.rngom.util.Uri.isHexDigit:(C)Z
ifne 9
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
iload 1
if_icmplt 3
end local 2 11: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 s Ljava/lang/String;
1 12 1 len I
2 11 2 i I
MethodParameters:
Name Flags
s
private static boolean isValidFragment(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
bipush 35
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 1: iload 1
iflt 2
aload 0
bipush 35
iload 1
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
iflt 2
iconst_0
ireturn
StackMap locals: int
StackMap stack:
2: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
1 3 1 i I
MethodParameters:
Name Flags
s
private static boolean isValidScheme(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic com.sun.xml.internal.rngom.util.Uri.isAbsolute:(Ljava/lang/String;)Z
ifne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 3: iload 1
ifeq 6
4: iload 1
iconst_1
iadd
aload 0
invokevirtual java.lang.String.length:()I
if_icmpeq 6
5: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic com.sun.xml.internal.rngom.util.Uri.isAlpha:(C)Z
ifne 9
6: StackMap locals: int
StackMap stack:
iconst_0
ireturn
7: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual java.lang.String.charAt:(I)C
invokestatic com.sun.xml.internal.rngom.util.Uri.isSchemeChar:(C)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
iinc 1 -1
iload 1
ifgt 7
10: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 s Ljava/lang/String;
3 11 1 i I
MethodParameters:
Name Flags
s
public static java.lang.String resolve(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.sun.xml.internal.rngom.util.Uri.isAbsolute:(Ljava/lang/String;)Z
ifne 4
aload 0
ifnull 4
aload 0
invokestatic com.sun.xml.internal.rngom.util.Uri.isAbsolute:(Ljava/lang/String;)Z
ifeq 4
1: new java.net.URL
dup
new java.net.URL
dup
aload 0
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
aload 1
invokespecial java.net.URL.<init>:(Ljava/net/URL;Ljava/lang/String;)V
invokevirtual java.net.URL.toString:()Ljava/lang/String;
2: areturn
3: StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 baseUri Ljava/lang/String;
0 5 1 uriReference Ljava/lang/String;
Exception table:
from to target type
1 2 3 Class java.net.MalformedURLException
MethodParameters:
Name Flags
baseUri
uriReference
public static boolean hasFragmentId(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 35
invokevirtual java.lang.String.indexOf:(I)I
iflt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 uri Ljava/lang/String;
MethodParameters:
Name Flags
uri
public static boolean isAbsolute(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 1: iload 1
ifge 5
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokevirtual java.lang.String.charAt:(I)C
lookupswitch { // 3
35: 4
47: 4
63: 4
default: 5
}
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iinc 1 -1
iload 1
ifge 3
6: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 uri Ljava/lang/String;
1 7 1 i I
MethodParameters:
Name Flags
uri
}
SourceFile: "Uri.java"