- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isDotQuadIP (0.08 sec)
-
src/test/java/jcifs/smb1/UniAddressTest.java
// Arrange & Act boolean result = UniAddress.isDotQuadIP(ip); // Assert assertTrue(result, "isDotQuadIP should return true for dot-quad IP"); } @ParameterizedTest @ValueSource(strings = { "192.168.0", "abcd", "192.168" }) void isDotQuadIPRejectsNonDotQuad(String value) { assertFalse(UniAddress.isDotQuadIP(value), "isDotQuadIP should return false for non IP-like values"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/UniAddress.java
/** * Check whether a hostname is actually an ip address * * @param hostname the hostname to check * @return whether this is an IP address */ public static boolean isDotQuadIP(final String hostname) { if (Character.isDigit(hostname.charAt(0))) { int i, len, dots; char[] data; i = dots = 0; /* quick IP address validation */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.3K bytes - Viewed (0)