All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.netty.resolver.HostsFileParser.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????2!io/netty/resolver/HostsFileParserjava/lang/ObjectHostsFileParser.javaWINDOWS_DEFAULT_SYSTEM_ROOTLjava/lang/String;
C:\Windows WINDOWS_HOSTS_FILE_RELATIVE_PATH\system32\drivers\etc\hostsX_PLATFORMS_HOSTS_FILE_PATH
/etc/hostsWHITESPACESLjava/util/regex/Pattern;logger/Lio/netty/util/internal/logging/InternalLogger;locateHostsFile()Ljava/io/File;(io/netty/util/internal/PlatformDependent	isWindows()Z
java/io/Filejava/lang/StringBuilder()V !
"
SystemRoot$java/lang/System&getenv&(Ljava/lang/String;)Ljava/lang/String;()
'*append-(Ljava/lang/String;)Ljava/lang/StringBuilder;,-
.toString()Ljava/lang/String;01
2(Ljava/lang/String;)V 4
5exists7
8%C:\Windows\system32\drivers\etc\hosts:	hostsFileLjava/io/File;
parseSilently&()Lio/netty/resolver/HostsFileEntries;java/io/IOException@
Bparse4(Ljava/io/File;)Lio/netty/resolver/HostsFileEntries;DE
F	H'Failed to load and parse hosts file at JgetPathL1
M-io/netty/util/internal/logging/InternalLoggerOwarn*(Ljava/lang/String;Ljava/lang/Throwable;)VQRPS"io/netty/resolver/HostsFileEntriesUEMPTY$Lio/netty/resolver/HostsFileEntries;WX	VYeLjava/io/IOException;file]!io/netty/util/internal/ObjectUtil_checkNotNull8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;ab
`cisFilee
fjava/io/BufferedReaderhjava/io/FileReaderj(Ljava/io/File;)V l
km(Ljava/io/Reader;)V o
ip6(Ljava/io/Reader;)Lio/netty/resolver/HostsFileEntries;Dr
sreaderujava/util/HashMapw
x"
java/util/MapzreadLine|1
i}java/lang/StringindexOf(I)I??
??	substring(II)Ljava/lang/String;??
??trim?1
??isEmpty?
??java/util/ArrayList?
?"	?java/util/regex/Pattern?split-(Ljava/lang/CharSequence;)[Ljava/lang/String;??
??java/io/Reader?java/util/List?[Ljava/lang/String;?add(Ljava/lang/Object;)Z????size()I????get(I)Ljava/lang/Object;????io/netty/util/NetUtil?"createByteArrayFromIpAddressString(Ljava/lang/String;)[B??
??[B?java/util/Locale?ENGLISHLjava/util/Locale;??	??toLowerCase&(Ljava/util/Locale;)Ljava/lang/String;??
??java/net/InetAddress?getByAddress,(Ljava/lang/String;[B)Ljava/net/InetAddress;??
??java/net/Inet4Address?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;??{?java/net/Inet6Address?{?!(Ljava/util/Map;Ljava/util/Map;)V ?
V?close?!
i?Failed to close a reader?java/lang/Throwable?spreviousLjava/net/Inet4Address;Ljava/net/Inet6Address;hostname
hostnameLoweraddressLjava/net/InetAddress;iIcommentPosition	lineParts$Ljava/util/List;Ljava/util/List;ipBytesipv4Entries:Ljava/util/Map;Ljava/util/Map;ipv6Entries:Ljava/util/Map;lineLjava/io/Reader;buffLjava/io/BufferedReader;
"this#Lio/netty/resolver/HostsFileParser;[ 	]+?compile-(Ljava/lang/String;)Ljava/util/regex/Pattern;??
??4io/netty/util/internal/logging/InternalLoggerFactory?getInstanceB(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;??
??
ConstantValueCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable
SourceFile1?	
?
?
?E??6?Y?Y?#%?+?/?/?3?6K*?9??Y;?6K?
?Y?6K*?%<=C<=9:%;,<9?CA	9?		>??-?CK*?G?L?I?Y?#K?/*?N?/?3+?T?Z?	A
#[\)<=JL	M
N)O?	A	D??C?G?ZA	DEk,*^?dW*?9?*?g??iY?kY*?n?q?t??Z?,]=efg(i(A	Dr#?*v?dW?iY*?qL?xY?yM?xY?yN+?~Y:?#??6?
??:??:?????λ?Y??:????:?66		?"	2:

???

??W?	??????????????:???g6???y????:		????:
	??:?ř(,
?Ź???:?,
??W?%-
?˹???:?-
??W???????,???-???	?Z??VY,-??:+?ҧ:?I??T?:
+?ҧ:?I??T
?gknAg???A??~?
??+???b?	?X?
?O??????3??^???????p[\g?? _??'X??[\?u???? ^???g?? _???/uvxy {*}3~9C?J?R?U?^?~???????????????????????????????+?0?;?A?D?g?k?n?p?|?????????????? i{{?"??
?i{{????
????V????!??i{{?HV??i{{?VA
??i???i?A
A !3*????
???!-????????I?
35




© 2015 - 2025 Weber Informatics LLC | Privacy Policy