- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for isDotQuadIP (0.84 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/test/java/jcifs/netbios/UniAddressTest.java
assertFalse(UniAddress.isDotQuadIP(input)); } @Test void shouldReturnTrueForInvalidOctetValues() { // isDotQuadIP does not validate octet values, only checks format assertTrue(UniAddress.isDotQuadIP("192.168.1.256")); assertTrue(UniAddress.isDotQuadIP("999.999.999.999")); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K 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) -
src/main/java/jcifs/smb1/UniAddress.java
*/ public static UniAddress getByName(final String hostname) throws UnknownHostException { return getByName(hostname, false); } static boolean isDotQuadIP(final String hostname) { if (hostname != null && hostname.length() > 0 && Character.isDigit(hostname.charAt(0))) { int i, len, dots; char[] data;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
if (hostname == null || hostname.length() == 0) { throw new UnknownHostException(); } if (UniAddress.isDotQuadIP(hostname)) { return new UniAddress[] { new UniAddress(getNbtByName(hostname)) }; } if (log.isTraceEnabled()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0)