public class io.undertow.util.NetworkUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.undertow.util.NetworkUtils
super_class: java.lang.Object
{
public static java.lang.String formatPossibleIpv6Address(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc ":"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 4
3: aload 0
areturn
4: StackMap locals:
StackMap stack:
aload 0
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
aload 0
ldc "]"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
5: aload 0
areturn
6: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 address Ljava/lang/String;
MethodParameters:
Name Flags
address
public static java.net.InetAddress parseIpv4Address(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/InetAddress;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
ldc "\\."
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
arraylength
iconst_4
if_icmpeq 3
2: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
3: StackMap locals: java.lang.String[]
StackMap stack:
iconst_4
newarray 8
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 11
6: StackMap locals: byte[] int
StackMap stack:
aload 1
iload 3
aaload
astore 4
start local 4 7: aload 4
invokevirtual java.lang.String.length:()I
ifeq 8
aload 4
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 48
if_icmpne 9
aload 4
invokevirtual java.lang.String.length:()I
iconst_1
if_icmple 9
8: StackMap locals: java.lang.String
StackMap stack:
getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
9: StackMap locals:
StackMap stack:
aload 2
iload 3
aload 4
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
i2b
bastore
end local 4 10: iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
iconst_4
if_icmplt 6
end local 3 12: aload 2
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 addressString Ljava/lang/String;
1 13 1 parts [Ljava/lang/String;
4 13 2 data [B
5 12 3 i I
7 10 4 part Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
addressString
public static java.net.InetAddress parseIpv6Address(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/InetAddress;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=9, args_size=1
start local 0 0: aload 0
ldc ":"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
istore 1
start local 1 1: iload 1
ifeq 3
aload 0
ldc "::"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
2: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
3: StackMap locals: int
StackMap stack:
iload 1
ifeq 4
aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 5
StackMap locals:
StackMap stack:
4: aload 0
StackMap locals:
StackMap stack: java.lang.String
5: ldc ":"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 6: bipush 16
newarray 8
astore 3
start local 3 7: iconst_0
istore 4
start local 4 8: iconst_0
istore 5
start local 5 9: aload 2
arraylength
bipush 8
if_icmple 11
10: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
11: StackMap locals: java.lang.String int java.lang.String[] byte[] int int
StackMap stack:
iconst_0
istore 6
start local 6 12: goto 31
13: StackMap locals: int
StackMap stack:
aload 2
iload 6
aaload
astore 7
start local 7 14: aload 7
invokevirtual java.lang.String.length:()I
iconst_4
if_icmple 16
15: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
16: StackMap locals: java.lang.String
StackMap stack:
aload 7
invokevirtual java.lang.String.isEmpty:()Z
ifeq 25
17: iload 5
ifeq 19
18: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
19: StackMap locals:
StackMap stack:
iconst_1
istore 5
20: bipush 8
aload 2
arraylength
isub
istore 8
start local 8 21: iload 8
ifge 23
22: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
23: StackMap locals: int
StackMap stack:
iload 8
iconst_2
imul
istore 4
end local 8 24: goto 30
StackMap locals:
StackMap stack:
25: aload 7
invokevirtual java.lang.String.length:()I
iconst_1
if_icmple 27
aload 7
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 48
if_icmpne 27
26: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
27: StackMap locals:
StackMap stack:
aload 7
bipush 16
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 8
start local 8 28: aload 3
iload 6
iconst_2
imul
iload 4
iadd
iload 8
bipush 8
ishr
i2b
bastore
29: aload 3
iload 6
iconst_2
imul
iload 4
iadd
iconst_1
iadd
iload 8
i2b
bastore
end local 8 end local 7 30: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
31: iload 6
aload 2
arraylength
if_icmplt 13
end local 6 32: aload 2
arraylength
bipush 8
if_icmpge 34
iload 5
ifne 34
33: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
invokeinterface io.undertow.UndertowMessages.invalidIpAddress:(Ljava/lang/String;)Ljava/io/IOException;
athrow
34: StackMap locals:
StackMap stack:
aload 3
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
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 35 0 addressString Ljava/lang/String;
1 35 1 startsWithColon Z
6 35 2 parts [Ljava/lang/String;
7 35 3 data [B
8 35 4 partOffset I
9 35 5 seenEmpty Z
12 32 6 i I
14 30 7 part Ljava/lang/String;
21 24 8 off I
28 30 8 num I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
addressString
public static java.lang.String toObfuscatedString(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 1
start local 1 3: aload 0
instanceof java.net.Inet4Address
ifeq 5
4: aload 1
iconst_0
aload 1
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
5: StackMap locals: java.lang.String
StackMap stack:
aload 1
iconst_0
aload 1
ldc ":"
aload 1
ldc ":"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;I)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 address Ljava/net/InetAddress;
3 6 1 s Ljava/lang/String;
MethodParameters:
Name Flags
address
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
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/undertow/util/NetworkUtils;
}
SourceFile: "NetworkUtils.java"