Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasNextAddress (1.24 sec)

  1. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertSame(a2, l3.getAddress());
            verify(nsc, times(1)).getAllByName("server", true);
            assertTrue(l3.hasNextAddress());
            assertSame(a3, l3.getNextAddress());
            assertFalse(l3.hasNextAddress());
    
            // UnknownHostException yields CIFSException
            when(nsc.getAllByName("badhost", true)).thenThrow(new UnknownHostException("nope"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

            Address addr = null;
            if (this.addressIndex < this.addresses.length) {
                addr = this.addresses[this.addressIndex++];
            }
            return addr;
        }
    
        boolean hasNextAddress() {
            return this.addressIndex < this.addresses.length;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#isRoot()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top