- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for InetAddresses (0.12 seconds)
-
android/guava/src/com/google/common/net/InetAddresses.java
* the format specified by RFC 3986 section 3.2.2. * * <p>This method is similar to {@link InetAddresses#forString(String)}, however, it requires that * IPv6 addresses are surrounded by square brackets. * * <p>This method is the inverse of {@link InetAddresses#toUriString(java.net.InetAddress)}. * * <p>This method accepts non-ASCII digits, for example {@code "192.168.0.1"} (those are fullwidthCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 47.7K bytes - Click Count (0) -
android/guava/src/com/google/common/net/HostSpecifier.java
// use InetAddresses.toUriString to convert the result to a string in // canonical form. InetAddress addr = null; try { addr = InetAddresses.forString(host); } catch (IllegalArgumentException e) { // It is not an IPv4 or IPv6 literal } if (addr != null) { return new HostSpecifier(InetAddresses.toUriString(addr)); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/HostSpecifierTest.java
import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * {@link TestCase} for {@link HostSpecifier}. This is a relatively cursory test, as HostSpecifier * is a thin wrapper around {@link InetAddresses} and {@link InternetDomainName}; the unit tests for * those classes explore numerous corner cases. The intent here is to confirm that everything is * wired up properly. * * @author Craig Berry */ @NullUnmarkedCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 3.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
*/ private var dnsResults = listOf<InetAddress>() @BeforeEach internal fun setUp() { val inetAddresses = InetAddress.getAllByName("localhost") localhostIpv4 = inetAddresses.firstOrNull { it is Inet4Address } ?: throw TestAbortedException() localhostIpv6 = inetAddresses.firstOrNull { it is Inet6Address } ?: throw TestAbortedException() serverIpv4 = MockWebServer()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
.isEqualTo(InetAddresses.forString("127.0.0.1")); // ::1 special case assertThat(InetAddresses.getCoercedIPv4Address(InetAddresses.forString("::1"))) .isEqualTo(InetAddresses.forString("127.0.0.1")); // :: special case assertThat(InetAddresses.getCoercedIPv4Address(InetAddresses.forString("::")))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 36.3K bytes - Click Count (0) -
android/guava/src/com/google/common/net/HostAndPort.java
* * <p>Note that this parser identifies IPv6 literals solely based on the presence of a colon. To * perform actual validation of IP addresses, see the {@link InetAddresses#forString(String)} * method. * * @return {@code this}, to enable chaining of calls. * @throws IllegalArgumentException if bracketless IPv6 is detected. */ @CanIgnoreReturnValueCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 11.1K bytes - Click Count (0)