Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for fetchMore (0.1 sec)

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

            assertTrue(it.hasNext(), "Iterator should have second element");
            assertSame(fe2, it.next(), "Second element must match first page");
    
            // Next page fetched via fetchMore()
            assertTrue(it.hasNext(), "Iterator should have third element after fetchMore");
            assertSame(fe3, it.next(), "Third element from second page");
    
            // After last element, hasNext should be false and calling close() should send Smb2CloseRequest once
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            @Override
            protected boolean isDone() {
                return this.done;
            }
    
            @Override
            protected boolean fetchMore() throws CIFSException {
                if (throwOnFetch)
                    throw new CIFSException("fetchMore fail");
                // Move to next page if available
                if (staticPages != null && pageIdx + 1 < staticPages.size()) {
                    pageIdx++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                doClose();
            }
            return n;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.DirFileEntryEnumIteratorBase#fetchMore()
         */
        @SuppressWarnings("resource")
        @Override
        protected boolean fetchMore() throws CIFSException {
            final FileEntry[] results = this.response.getResults();
            final SmbTreeHandleImpl th = getTreeHandle();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

            return this.response.getResults();
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws CIFSException
         *
         * @see jcifs.smb.DirFileEntryEnumIteratorBase#fetchMore()
         */
        @Override
        protected boolean fetchMore() throws CIFSException {
            this.nextRequest.reset(this.response.getResumeKey(), this.response.getLastName());
            this.response.reset();
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

                this.ridx++;
                if (filter(itm)) {
                    return itm;
                }
            }
    
            if (!last && !isDone()) {
                if (!fetchMore()) {
                    doClose();
                    return null;
                }
                this.ridx = 0;
                return advance(true);
            }
            return null;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            verify(tree, times(1)).acquire();
            verify(tree, times(1)).release();
        }
    
        @Test
        @DisplayName("Happy path: iterates entries, fetchMore(), then closes with FindClose2")
        void iteratesAndFetchesMoreThenCloses() throws Exception {
            // Arrange: program send() to simulate first, next, next(NO_MORE_FILES)
            List<String[]> batches = new ArrayList<>();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top