Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for doCloseInternal (0.11 sec)

  1. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

         */
        protected synchronized void doClose() throws CIFSException {
            // otherwise already closed
            if (!this.closed) {
                this.closed = true;
                try {
                    doCloseInternal();
                } finally {
                    this.next = null;
                    this.treeHandle.release();
                }
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

                    return staticPages.get(pageIdx);
                }
                return new FileEntry[0];
            }
    
            @Override
            protected void doCloseInternal() throws CIFSException {
                if (throwOnCloseInternal)
                    throw new CIFSException("closeInternal fail");
            }
        }
    
        @Mock
        SmbTreeHandleImpl tree;
        @Mock
    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

        }
    
        /**
         * Performs internal closing operations for SMB2 enumeration.
         *
         * @throws CIFSException if an error occurs during closing
         */
        @Override
        protected void doCloseInternal() throws CIFSException {
            try {
                @SuppressWarnings("resource")
                final SmbTreeHandleImpl th = getTreeHandle();
                if (this.fileId != null && th.isConnected()) {
    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

         */
        @Override
        protected boolean isDone() {
            return this.response.isEndOfSearch();
        }
    
        /**
         * @throws CIFSException
         */
        @Override
        protected void doCloseInternal() throws CIFSException {
            try {
                @SuppressWarnings("resource")
                final SmbTreeHandleImpl th = getTreeHandle();
                if (this.response != null) {
    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/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // After last element, hasNext should be false and calling close() should send Smb2CloseRequest once
            assertFalse(it.hasNext(), "Iterator should be exhausted");
    
            // Close explicitly to exercise doCloseInternal
            it.close();
    
            // Verify interactions: one create, two additional directory queries (for fetchMore), one close
            verify(tree, times(1)).send(argThat((Request<?> r) -> r instanceof Smb2CreateRequest));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top