![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.net.InetAddresses.class Maven / Gradle / Ivy
???? 4f `
ab
cd
efg
h
ijk
l
m
An
Ao
pq
r
As
t
Au
v
w x
yz{
A|
}~
??
??
?
??
A?
*??
$a
$??
$?
a????
????
c?
?
-?
-?
-?
???
-?????
9??
<?
c?
??
???
??
??
?
?
?
-??
??
-?
$??
??
$?
$???
??
??
A?
A?
-?
??
c?
??
?
??
??
???? ???
e?
??
?
?
?
e?? ?
?
?
?
??
??
????
???
??
?
?
?????
}?
?
}??
}?
???
*?
???? ??
A?
9?
y??
??? InnerClasses
TeredoInfo Scope IPV4_PART_COUNT I
ConstantValue IPV6_PART_COUNT IPV4_DELIMITER C . IPV6_DELIMITER : IPV4_DELIMITER_MATCHER $Lcom/google/common/base/CharMatcher; IPV6_DELIMITER_MATCHER LOOPBACK4 Ljava/net/Inet4Address; ANY4 ()V Code LineNumberTable LocalVariableTable this %Lcom/google/common/net/InetAddresses; getInet4Address ([B)Ljava/net/Inet4Address; bytes [B
StackMapTable MethodParameters forString *(Ljava/lang/String;)Ljava/net/InetAddress; ipString Ljava/lang/String; scope +Lcom/google/common/net/InetAddresses$Scope; addr ? RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
isInetAddress (Ljava/lang/String;)Z ipStringToBytes A(Ljava/lang/String;Lcom/google/common/net/InetAddresses$Scope;)[B c i
ipStringParam hasColon Z hasDot percentIndex RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; textToNumericFormatV4 (Ljava/lang/String;)[B ex !Ljava/lang/NumberFormatException; end start textToNumericFormatV6 delimiterCount partsSkipped hasSkip rawBytes Ljava/nio/ByteBuffer;? convertDottedQuadToHex &(Ljava/lang/String;)Ljava/lang/String; lastColon initialPart
dottedQuad quad penultimate ultimate
parseOctet (Ljava/lang/String;II)B digit length octet tryParseDecimal (Ljava/lang/String;II)I string decimal max parseHextet (Ljava/lang/String;II)S hextet bytesToInetAddress ,([BLjava/lang/String;)Ljava/net/InetAddress; asInterface Ljava/net/NetworkInterface; e Ljava/io/IOException; address Ljava/net/InetAddress; v6Address Ljava/net/Inet6Address; interfaceIndex Ljava/net/UnknownHostException;??? toAddrString *(Ljava/net/InetAddress;)Ljava/lang/String; ip hextets [I scopeWithDelimiter +(Ljava/net/Inet6Address;)Ljava/lang/String; scopedInterface compressLongestRunOfZeroes ([I)V runLength bestRunStart
bestRunLength runStart hextetsToIPv6String ([I)Ljava/lang/String; thisIsNumber buf Ljava/lang/StringBuilder;
lastWasNumber toUriString forUriString hostAddr forUriStringOrNull +(Ljava/lang/String;Z)Ljava/net/InetAddress; expectBytes
parseScope isUriInetAddress isCompatIPv4Address (Ljava/net/Inet6Address;)Z getCompatIPv4Address 0(Ljava/net/Inet6Address;)Ljava/net/Inet4Address;
is6to4Address get6to4IPv4Address isTeredoAddress
getTeredoInfo I(Ljava/net/Inet6Address;)Lcom/google/common/net/InetAddresses$TeredoInfo; server flags port clientBytes client isIsatapAddress getIsatapIPv4Address hasEmbeddedIPv4ClientAddress getEmbeddedIPv4ClientAddress isMappedIPv4Address getCoercedIPv4Address /(Ljava/net/InetAddress;)Ljava/net/Inet4Address; leadingBytesOfZero ip6
addressAsLong J coercedHash coerceToInteger (Ljava/net/InetAddress;)I toBigInteger .(Ljava/net/InetAddress;)Ljava/math/BigInteger; fromInteger (I)Ljava/net/Inet4Address; fromIPv4BigInteger /(Ljava/math/BigInteger;)Ljava/net/Inet4Address; Ljava/math/BigInteger; fromIPv6BigInteger /(Ljava/math/BigInteger;)Ljava/net/Inet6Address; fromBigInteger /(Ljava/math/BigInteger;Z)Ljava/net/InetAddress;
impossible isIpv6 numBytes addressBytes targetCopyArray srcPos
copyLength destPos fromLittleEndianByteArray ([B)Ljava/net/InetAddress; reversed
Exceptions decrement .(Ljava/net/InetAddress;)Ljava/net/InetAddress; increment isMaximum (Ljava/net/InetAddress;)Z b B formatIllegalArgumentException K(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException; format args [Ljava/lang/Object;
access$200 ()Ljava/net/Inet4Address;
SourceFile InetAddresses.java 7Lcom/google/common/net/ElementTypesAreNonnullByDefault; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; ? ? ? ? ;Byte array has invalid length for an IPv4 address: %s != 4.??? ? ? java/net/Inet4Address )com/google/common/net/InetAddresses$Scope ?? ? ? !'%s' is not an IP string literal. java/lang/ObjectST?? ? ? ? ? ? ? ? ? ? ?
#com/google/common/net/InetAddresses
? ? java/lang/NumberFormatException ? ? ? ? java/lang/StringBuilder : java/lang/IntegerI java/net/Inet6Address 3Unexpected state, scope should only appear for ipv6? ? ? !" No such interface: '%s'# java/net/SocketException java/net/UnknownHostException "java/lang/IllegalArgumentException No such interface: ?$ java/lang/AssertionError ?%&'()' java/lang/String*+,-. %/0 1 234 ?56 :: [ ? ? ] Not a valid URI IP literal: '%s'7 ?8 ?9: $Address '%s' is not IPv4-compatible.?;<= ? ? #Address '%s' is not a 6to4 address. %Address '%s' is not a Teredo address.>?@ABC .com/google/common/net/InetAddresses$TeredoInfo ?D' &Address '%s' is not an ISATAP address. !EY "'%s' has no embedded IPv4 address. ? ?)*F GHIJKLMNOPQR ST,-?UV java/math/BigInteger ?W>?X -BigInteger must be greater than or equal to 0SY ? SBigInteger cannot be converted to InetAddress because it has more than %d bytes: %sZ[\]^ Decrementing %s would wrap. Incrementing %s would wrap._`aUb ?cde 127.0.0.1 ? ? 0.0.0.0 %com/google/common/net/InetAddresses$1 java/nio/ByteBuffer java/net/InetAddress java/net/NetworkInterface java/io/IOException $com/google/common/base/Preconditions
checkArgument (ZLjava/lang/String;I)V *(Lcom/google/common/net/InetAddresses$1;)V
access$100 ?(Lcom/google/common/net/InetAddresses$Scope;)Ljava/lang/String; ()I charAt (I)C java/lang/Character (CI)I substring (I)Ljava/lang/String;
access$102 Q(Lcom/google/common/net/InetAddresses$Scope;Ljava/lang/String;)Ljava/lang/String; (II)Ljava/lang/String; "com/google/common/base/CharMatcher countIn (Ljava/lang/CharSequence;)I indexOf (II)I allocate (I)Ljava/nio/ByteBuffer; putShort (S)Ljava/nio/ByteBuffer; array ()[B lastIndexOf (I)I toHexString append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; getByAddress (ZLjava/lang/Object;)V getHostAddress
getAddress .(Ljava/lang/String;[BI)Ljava/net/Inet6Address; getByName /(Ljava/lang/String;)Ljava/net/NetworkInterface; H(Ljava/lang/String;[BLjava/net/NetworkInterface;)Ljava/net/Inet6Address; *(Ljava/lang/String;Ljava/lang/Throwable;)V (Ljava/lang/Object;)V checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; java/util/Objects requireNonNull !com/google/common/primitives/Ints fromBytes (BBBB)I getScopedInterface ()Ljava/net/NetworkInterface; getName
getScopeId (I)Ljava/lang/StringBuilder; java/util/Arrays fill ([IIII)V (I)V (C)Ljava/lang/StringBuilder;
startsWith endsWith isIPv4CompatibleAddress ()Z ((ZLjava/lang/String;Ljava/lang/Object;)V copyOfRange ([BII)[B com/google/common/io/ByteStreams newDataInput .([BI)Lcom/google/common/io/ByteArrayDataInput; 'com/google/common/io/ByteArrayDataInput readShort ()S 3(Ljava/net/Inet4Address;Ljava/net/Inet4Address;II)V getClient hashCode wrap ([BII)Ljava/nio/ByteBuffer; getLong ()J com/google/common/hash/Hashing murmur3_32_fixed '()Lcom/google/common/hash/HashFunction; #com/google/common/hash/HashFunction hashLong $(J)Lcom/google/common/hash/HashCode; com/google/common/hash/HashCode asInt toByteArray (I)[B -([B)Lcom/google/common/io/ByteArrayDataInput; readInt (I[B)V signum java/lang/Math valueOf (I)Ljava/lang/Integer; java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V java/util/Locale ROOT Ljava/util/Locale; K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; (Ljava/lang/String;)V is '(C)Lcom/google/common/base/CharMatcher; 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? - ? ? ? / *? ? ? t ? ? ?
? ? ? T *?? ? *?? *? ? ? ?
~ ? ? ? ? ?
@ ? ? ? ? ? ? *? Y? L*+? M,?
? Y*S? ?,+?
? ? ? ? ? ? ? ! ? ? * ? ? ! ? ? ? ? ? ? ! ? ? ? ? ? ? ? ? C *? ? ? ? ? ? ? ? ? ? @ ? ?
? ? ? ? ?*M>666,? ? L,? 6.? 6? 1:? ? ?>? %?
6? ? ? ?????? 7? ,? M,? ?? +? +,`? ? W,? M,? ?? ? ?,? ?? ? ? ! ? ? ? ?
? ? ? % ? + ? 2 ? 7 ? 9 ? > ? E ? I ? L ? W ? Y ? _ ? c ? h ? m ? q ? s ? y ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? R ; ? ?
R ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? )
?
A A ?
? ? ? ? ? ? ? ? ?
? ? ? O? *? `? ??L=>? 4*.? 6? *? 6+*? T? :?`=????+? 1 ; > ? > ?
? ? ? ? ? % ? + ? 1 ? ; > ? @ ? B G ? M ? > @ ? ? % " ? ? 6 ? ? O ? ? <