public final class io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider implements io.netty.resolver.dns.DnsServerAddressStreamProvider
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider
super_class: java.lang.Object
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String ETC_RESOLV_CONF_FILE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/etc/resolv.conf"
private static final java.lang.String ETC_RESOLVER_DIR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/etc/resolver"
private static final java.lang.String NAMESERVER_ROW_LABEL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "nameserver"
private static final java.lang.String SORTLIST_ROW_LABEL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "sortlist"
private static final java.lang.String OPTIONS_ROW_LABEL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "options"
private static final java.lang.String DOMAIN_ROW_LABEL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "domain"
private static final java.lang.String PORT_ROW_LABEL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "port"
private static final java.lang.String NDOTS_LABEL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "ndots:"
static final int DEFAULT_NDOTS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final io.netty.resolver.dns.DnsServerAddresses defaultNameServerAddresses;
descriptor: Lio/netty/resolver/dns/DnsServerAddresses;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, io.netty.resolver.dns.DnsServerAddresses> domainToNameServerStreamMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/netty/resolver/dns/UnixResolverDnsServerAddressStreamProvider;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
1: putstatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.logger:Lio/netty/util/internal/logging/InternalLogger;
2: return
LocalVariableTable:
Start End Slot Name Signature
static io.netty.resolver.dns.DnsServerAddressStreamProvider parseSilently();
descriptor: ()Lio/netty/resolver/dns/DnsServerAddressStreamProvider;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=1, args_size=0
0: new io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider
dup
ldc "/etc/resolv.conf"
ldc "/etc/resolver"
invokespecial io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: astore 0
start local 0 2: aload 0
invokevirtual io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.mayOverrideNameServers:()Z
ifeq 3
aload 0
goto 4
3: StackMap locals: io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider
StackMap stack:
getstatic io.netty.resolver.dns.DefaultDnsServerAddressStreamProvider.INSTANCE:Lio/netty/resolver/dns/DefaultDnsServerAddressStreamProvider;
4: StackMap locals:
StackMap stack: io.netty.resolver.dns.DnsServerAddressStreamProvider
areturn
end local 0 5: StackMap locals:
StackMap stack: java.lang.Exception
astore 0
start local 0 6: getstatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "failed to parse {} and/or {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "/etc/resolv.conf"
aastore
dup
iconst_1
ldc "/etc/resolver"
aastore
dup
iconst_2
aload 0
aastore
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
7: getstatic io.netty.resolver.dns.DefaultDnsServerAddressStreamProvider.INSTANCE:Lio/netty/resolver/dns/DefaultDnsServerAddressStreamProvider;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 5 0 nameServerCache Lio/netty/resolver/dns/UnixResolverDnsServerAddressStreamProvider;
6 8 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
public void <init>(java.io.File, java.io.File[]);
descriptor: (Ljava/io/File;[Ljava/io/File;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iconst_1
anewarray java.io.File
dup
iconst_0
aload 1
ldc "etcResolvConf"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.io.File
aastore
invokestatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.parse:([Ljava/io/File;)Ljava/util/Map;
astore 3
start local 3 2: aload 2
ifnull 3
aload 2
arraylength
ifeq 3
iconst_1
goto 4
StackMap locals: io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider java.io.File java.io.File[] java.util.Map
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 4
start local 4 5: aload 0
iload 4
ifeq 6
aload 2
invokestatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.parse:([Ljava/io/File;)Ljava/util/Map;
goto 7
StackMap locals: io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider java.io.File java.io.File[] java.util.Map int
StackMap stack: io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider
6: aload 3
StackMap locals: io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider java.io.File java.io.File[] java.util.Map int
StackMap stack: io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider java.util.Map
7: putfield io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.domainToNameServerStreamMap:Ljava/util/Map;
8: aload 3
aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.netty.resolver.dns.DnsServerAddresses
astore 5
start local 5 9: aload 5
ifnonnull 15
10: aload 3
invokeinterface java.util.Map.values:()Ljava/util/Collection;
astore 6
start local 6 11: aload 6
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 13
12: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " didn't provide any name servers"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: io.netty.resolver.dns.DnsServerAddresses java.util.Collection
StackMap stack:
aload 0
aload 6
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.resolver.dns.DnsServerAddresses
putfield io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.defaultNameServerAddresses:Lio/netty/resolver/dns/DnsServerAddresses;
end local 6 14: goto 16
15: StackMap locals:
StackMap stack:
aload 0
aload 5
putfield io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.defaultNameServerAddresses:Lio/netty/resolver/dns/DnsServerAddresses;
16: StackMap locals:
StackMap stack:
iload 4
ifeq 18
17: aload 0
getfield io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.domainToNameServerStreamMap:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
18: StackMap locals:
StackMap stack:
return
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 19 0 this Lio/netty/resolver/dns/UnixResolverDnsServerAddressStreamProvider;
0 19 1 etcResolvConf Ljava/io/File;
0 19 2 etcResolverFiles [Ljava/io/File;
2 19 3 etcResolvConfMap Ljava/util/Map<Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;>;
5 19 4 useEtcResolverFiles Z
9 19 5 defaultNameServerAddresses Lio/netty/resolver/dns/DnsServerAddresses;
11 14 6 values Ljava/util/Collection<Lio/netty/resolver/dns/DnsServerAddresses;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
etcResolvConf
etcResolverFiles
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack: uninitialized-this
1: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
2: StackMap locals: uninitialized-this java.lang.String java.lang.String
StackMap stack: uninitialized-this java.io.File
aload 2
ifnonnull 3
aconst_null
goto 4
StackMap locals: uninitialized-this java.lang.String java.lang.String
StackMap stack: uninitialized-this java.io.File
3: new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
StackMap locals: uninitialized-this java.lang.String java.lang.String
StackMap stack: uninitialized-this java.io.File java.io.File[]
4: invokespecial io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.<init>:(Ljava/io/File;[Ljava/io/File;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/resolver/dns/UnixResolverDnsServerAddressStreamProvider;
0 6 1 etcResolvConf Ljava/lang/String;
0 6 2 etcResolverDir Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
etcResolvConf
etcResolverDir
public io.netty.resolver.dns.DnsServerAddressStream nameServerAddressStream(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/netty/resolver/dns/DnsServerAddressStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 1
bipush 46
iconst_1
invokevirtual java.lang.String.indexOf:(II)I
istore 2
start local 2 1: iload 2
iflt 2
iload 2
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpne 3
2: StackMap locals: int
StackMap stack:
aload 0
getfield io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.defaultNameServerAddresses:Lio/netty/resolver/dns/DnsServerAddresses;
invokevirtual io.netty.resolver.dns.DnsServerAddresses.stream:()Lio/netty/resolver/dns/DnsServerAddressStream;
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.domainToNameServerStreamMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.netty.resolver.dns.DnsServerAddresses
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 3
invokevirtual io.netty.resolver.dns.DnsServerAddresses.stream:()Lio/netty/resolver/dns/DnsServerAddressStream;
areturn
6: StackMap locals: io.netty.resolver.dns.DnsServerAddresses
StackMap stack:
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
end local 3 end local 2 7: goto 0
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/resolver/dns/UnixResolverDnsServerAddressStreamProvider;
0 8 1 hostname Ljava/lang/String;
1 7 2 i I
4 7 3 addresses Lio/netty/resolver/dns/DnsServerAddresses;
MethodParameters:
Name Flags
hostname
private boolean mayOverrideNameServers();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.domainToNameServerStreamMap:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifeq 1
aload 0
getfield io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.defaultNameServerAddresses:Lio/netty/resolver/dns/DnsServerAddresses;
invokevirtual io.netty.resolver.dns.DnsServerAddresses.stream:()Lio/netty/resolver/dns/DnsServerAddressStream;
invokeinterface io.netty.resolver.dns.DnsServerAddressStream.next:()Ljava/net/InetSocketAddress;
ifnonnull 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/resolver/dns/UnixResolverDnsServerAddressStreamProvider;
private static java.util.Map<java.lang.String, io.netty.resolver.dns.DnsServerAddresses> parse(java.io.File[]);
descriptor: ([Ljava/io/File;)Ljava/util/Map;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=16, args_size=1
start local 0 0: new java.util.HashMap
dup
aload 0
arraylength
iconst_1
ishl
invokespecial java.util.HashMap.<init>:(I)V
1: astore 1
start local 1 2: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 71
StackMap locals: java.io.File[] java.util.Map top int int java.io.File[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: aload 2
invokevirtual java.io.File.isFile:()Z
ifne 6
5: goto 70
6: StackMap locals: java.io.File[] java.util.Map java.io.File int int java.io.File[]
StackMap stack:
new java.io.FileReader
dup
aload 2
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
astore 6
start local 6 7: aconst_null
astore 7
start local 7 8: new java.io.BufferedReader
dup
aload 6
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 7
9: new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
astore 8
start local 8 10: aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 9
start local 9 11: bipush 53
istore 10
start local 10 12: goto 55
start local 11 13: StackMap locals: java.io.File[] java.util.Map java.io.File int int java.io.File[] java.io.FileReader java.io.BufferedReader java.util.List java.lang.String int java.lang.String
StackMap stack:
aload 11
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 11
14: aload 11
invokevirtual java.lang.String.isEmpty:()Z
ifne 55
aload 11
iconst_0
invokevirtual java.lang.String.charAt:(I)C
dup
istore 12
start local 12 15: bipush 35
if_icmpeq 55
iload 12
bipush 59
if_icmpne 17
end local 12 16: goto 55
start local 12 17: StackMap locals: int
StackMap stack:
aload 11
ldc "nameserver"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 34
18: aload 11
ldc "nameserver"
invokevirtual java.lang.String.length:()I
invokestatic io.netty.util.internal.StringUtil.indexOfNonWhiteSpace:(Ljava/lang/CharSequence;I)I
istore 13
start local 13 19: iload 13
ifge 23
20: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "error parsing label nameserver in file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
21: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ". value: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 11
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals: int
StackMap stack:
aload 11
iload 13
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 14
start local 14 24: aload 14
invokestatic io.netty.util.NetUtil.isValidIpV4Address:(Ljava/lang/String;)Z
ifne 32
aload 14
invokestatic io.netty.util.NetUtil.isValidIpV6Address:(Ljava/lang/String;)Z
ifne 32
25: aload 14
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 13
26: iload 13
iconst_1
iadd
aload 14
invokevirtual java.lang.String.length:()I
if_icmplt 30
27: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "error parsing label nameserver in file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
28: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ". invalid IP value: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 11
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
29: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
30: StackMap locals: java.lang.String
StackMap stack:
aload 14
iload 13
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 10
31: aload 14
iconst_0
iload 13
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 14
32: StackMap locals:
StackMap stack:
aload 8
aload 14
iload 10
invokestatic io.netty.util.internal.SocketUtils.socketAddress:(Ljava/lang/String;I)Ljava/net/InetSocketAddress;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 14 end local 13 33: goto 55
StackMap locals:
StackMap stack:
34: aload 11
ldc "domain"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 45
35: aload 11
ldc "domain"
invokevirtual java.lang.String.length:()I
invokestatic io.netty.util.internal.StringUtil.indexOfNonWhiteSpace:(Ljava/lang/CharSequence;I)I
istore 13
start local 13 36: iload 13
ifge 40
37: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "error parsing label domain in file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
38: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " value: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 11
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
39: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
40: StackMap locals: int
StackMap stack:
aload 11
iload 13
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 9
41: aload 8
invokeinterface java.util.List.isEmpty:()Z
ifne 43
42: aload 1
aload 9
aload 8
invokestatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.putIfAbsent:(Ljava/util/Map;Ljava/lang/String;Ljava/util/List;)V
43: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
astore 8
end local 13 44: goto 55
StackMap locals:
StackMap stack:
45: aload 11
ldc "port"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 53
46: aload 11
ldc "port"
invokevirtual java.lang.String.length:()I
invokestatic io.netty.util.internal.StringUtil.indexOfNonWhiteSpace:(Ljava/lang/CharSequence;I)I
istore 13
start local 13 47: iload 13
ifge 51
48: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "error parsing label port in file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
49: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " value: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 11
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
50: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
51: StackMap locals: int
StackMap stack:
aload 11
iload 13
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 10
end local 13 52: goto 55
StackMap locals:
StackMap stack:
53: aload 11
ldc "sortlist"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 55
54: getstatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "row type {} not supported. ignoring line: {}"
ldc "sortlist"
aload 11
invokeinterface io.netty.util.internal.logging.InternalLogger.info:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 12 end local 11 55: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 11
start local 11 56: ifnonnull 13
57: aload 8
invokeinterface java.util.List.isEmpty:()Z
ifne 66
58: aload 1
aload 9
aload 8
invokestatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.putIfAbsent:(Ljava/util/Map;Ljava/lang/String;Ljava/util/List;)V
end local 11 end local 10 end local 9 end local 8 59: goto 66
StackMap locals: java.io.File[] java.util.Map java.io.File int int java.io.File[] java.io.FileReader java.io.BufferedReader
StackMap stack: java.lang.Throwable
60: astore 15
61: aload 7
ifnonnull 64
62: aload 6
invokevirtual java.io.FileReader.close:()V
63: goto 65
64: StackMap locals: java.io.File[] java.util.Map java.io.File int int java.io.File[] java.io.FileReader java.io.BufferedReader top top top top top top top java.lang.Throwable
StackMap stack:
aload 7
invokevirtual java.io.BufferedReader.close:()V
65: StackMap locals:
StackMap stack:
aload 15
athrow
66: StackMap locals: java.io.File[] java.util.Map java.io.File int int java.io.File[] java.io.FileReader java.io.BufferedReader
StackMap stack:
aload 7
ifnonnull 69
67: aload 6
invokevirtual java.io.FileReader.close:()V
68: goto 70
69: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.io.BufferedReader.close:()V
end local 7 end local 6 end local 2 70: StackMap locals: java.io.File[] java.util.Map top int int java.io.File[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
71: iload 3
iload 4
if_icmplt 3
72: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 73 0 etcResolverFiles [Ljava/io/File;
2 73 1 domainToNameServerStreamMap Ljava/util/Map<Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;>;
4 70 2 etcResolverFile Ljava/io/File;
7 70 6 fr Ljava/io/FileReader;
8 70 7 br Ljava/io/BufferedReader;
10 59 8 addresses Ljava/util/List<Ljava/net/InetSocketAddress;>;
11 59 9 domainName Ljava/lang/String;
12 59 10 port I
13 55 11 line Ljava/lang/String;
56 59 11 line Ljava/lang/String;
15 16 12 c C
17 55 12 c C
19 33 13 i I
24 33 14 maybeIP Ljava/lang/String;
36 44 13 i I
47 52 13 i I
Exception table:
from to target type
8 60 60 any
Exceptions:
throws java.io.IOException
Signature: ([Ljava/io/File;)Ljava/util/Map<Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;>;
MethodParameters:
Name Flags
etcResolverFiles
private static void putIfAbsent(java.util.Map<java.lang.String, io.netty.resolver.dns.DnsServerAddresses>, java.lang.String, java.util.List<java.net.InetSocketAddress>);
descriptor: (Ljava/util/Map;Ljava/lang/String;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic io.netty.resolver.dns.DnsServerAddresses.sequential:(Ljava/lang/Iterable;)Lio/netty/resolver/dns/DnsServerAddresses;
invokestatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.putIfAbsent:(Ljava/util/Map;Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 domainToNameServerStreamMap Ljava/util/Map<Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;>;
0 2 1 domainName Ljava/lang/String;
0 2 2 addresses Ljava/util/List<Ljava/net/InetSocketAddress;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;>;Ljava/lang/String;Ljava/util/List<Ljava/net/InetSocketAddress;>;)V
MethodParameters:
Name Flags
domainToNameServerStreamMap
domainName
addresses
private static void putIfAbsent(java.util.Map<java.lang.String, io.netty.resolver.dns.DnsServerAddresses>, java.lang.String, io.netty.resolver.dns.DnsServerAddresses);
descriptor: (Ljava/util/Map;Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.netty.resolver.dns.DnsServerAddresses
astore 3
start local 3 1: aload 3
ifnull 6
2: aload 0
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: getstatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Domain name {} already maps to addresses {} so new addresses {} will be discarded"
iconst_3
anewarray java.lang.Object
dup
iconst_0
4: aload 1
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 2
aastore
5: invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
6: StackMap locals: io.netty.resolver.dns.DnsServerAddresses
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 domainToNameServerStreamMap Ljava/util/Map<Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;>;
0 7 1 domainName Ljava/lang/String;
0 7 2 addresses Lio/netty/resolver/dns/DnsServerAddresses;
1 7 3 existingAddresses Lio/netty/resolver/dns/DnsServerAddresses;
Signature: (Ljava/util/Map<Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;>;Ljava/lang/String;Lio/netty/resolver/dns/DnsServerAddresses;)V
MethodParameters:
Name Flags
domainToNameServerStreamMap
domainName
addresses
static int parseEtcResolverFirstNdots();
descriptor: ()I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.io.File
dup
ldc "/etc/resolv.conf"
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokestatic io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.parseEtcResolverFirstNdots:(Ljava/io/File;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
static int parseEtcResolverFirstNdots(java.io.File);
descriptor: (Ljava/io/File;)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: new java.io.FileReader
dup
aload 0
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: new java.io.BufferedReader
dup
aload 1
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 2
3: goto 17
start local 3 4: StackMap locals: java.io.FileReader java.io.BufferedReader java.lang.String
StackMap stack:
aload 3
ldc "options"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
5: aload 3
ldc "ndots:"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 4
start local 4 6: iload 4
iflt 26
7: iload 4
ldc "ndots:"
invokevirtual java.lang.String.length:()I
iadd
istore 4
8: aload 3
bipush 32
iload 4
invokevirtual java.lang.String.indexOf:(II)I
istore 5
start local 5 9: aload 3
iload 4
iload 5
ifge 10
aload 3
invokevirtual java.lang.String.length:()I
goto 11
StackMap locals: java.io.File java.io.FileReader java.io.BufferedReader java.lang.String int int
StackMap stack: java.lang.String int
10: iload 5
StackMap locals: java.io.File java.io.FileReader java.io.BufferedReader java.lang.String int int
StackMap stack: java.lang.String int int
11: invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 7
12: aload 2
ifnonnull 15
13: aload 1
invokevirtual java.io.FileReader.close:()V
14: goto 16
15: StackMap locals: java.io.File java.io.FileReader java.io.BufferedReader java.lang.String int int top int
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.close:()V
16: StackMap locals:
StackMap stack:
iload 7
ireturn
end local 5 end local 4 end local 3 17: StackMap locals: java.io.File java.io.FileReader java.io.BufferedReader
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 3
start local 3 18: ifnonnull 4
end local 3 19: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 6
21: aload 2
ifnonnull 24
22: aload 1
invokevirtual java.io.FileReader.close:()V
23: goto 25
24: StackMap locals: java.io.File java.io.FileReader java.io.BufferedReader top top top java.lang.Throwable
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.close:()V
25: StackMap locals:
StackMap stack:
aload 6
athrow
26: StackMap locals: java.io.File java.io.FileReader java.io.BufferedReader
StackMap stack:
aload 2
ifnonnull 29
27: aload 1
invokevirtual java.io.FileReader.close:()V
28: goto 30
29: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.close:()V
30: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 etcResolvConf Ljava/io/File;
1 31 1 fr Ljava/io/FileReader;
2 31 2 br Ljava/io/BufferedReader;
4 17 3 line Ljava/lang/String;
18 19 3 line Ljava/lang/String;
6 17 4 i I
9 17 5 j I
Exception table:
from to target type
2 12 20 any
17 20 20 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
etcResolvConf
}
SourceFile: "UnixResolverDnsServerAddressStreamProvider.java"