Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for SmbTreeHandleImpl (0.55 sec)

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

         * @param searchAttributes the file attributes to search for
         * @throws CIFSException if an error occurs during initialization
         */
        public DirFileEntryEnumIterator2(final SmbTreeHandleImpl th, final SmbResource parent, final String wildcard,
                final ResourceNameFilter filter, final int searchAttributes) throws CIFSException {
            super(th, parent, wildcard, filter, searchAttributes);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFile.java

            if (!(d instanceof final SmbFile dest)) {
                throw new SmbException("Invalid target resource");
            }
            try (SmbTreeHandleImpl sh = ensureTreeConnected(); SmbTreeHandleImpl th = dest.ensureTreeConnected()) {
    
                // this still might be required for standalone DFS
                if (!exists()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

                    .thenReturn(resp);
    
            setTree(c, tree);
    
            // Override connectHost to avoid actual network connection on retry
            doAnswer(invocation -> {
                SmbTreeHandleImpl handle = mock(SmbTreeHandleImpl.class);
                // Re-set the same tree to continue using our mock
                setTree(c, tree);
                return handle;
            }).when(c).connectHost(any(), anyString());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbPipeInputStream.java

            super(handle.getPipe(), th, null);
            this.handle = handle;
        }
    
        /**
         * Ensures that the tree connection is established.
         *
         * @return the tree handle implementation
         * @throws CIFSException if a connection error occurs
         */
        protected synchronized SmbTreeHandleImpl ensureTreeConnected() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

        }
    
        @Test
        void testConstructorWithSmbFileOnly() throws IOException, CIFSException {
            // Given
            // Mock the AutoCloseable tree handle behavior
            SmbTreeHandleImpl autoCloseableMockTreeHandle = mock(SmbTreeHandleImpl.class);
            when(mockFile.ensureTreeConnected()).thenReturn(autoCloseableMockTreeHandle);
            when(autoCloseableMockTreeHandle.isSMB2()).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbCopyUtil.java

         * @param resp
         * @throws SmbException
         */
        static void copyFile(final SmbFile src, final SmbFile dest, final byte[][] b, final int bsize, final WriterThread w,
                final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException {
    
            if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) {
                try {
                    serverSideCopy(src, dest, sh, dh, false);
                    return;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

        private static final int FIND_OVERHEAD = 100; // plenty enough
    
        private Trans2FindNext2 nextRequest;
        private Trans2FindFirst2Response response;
    
        public DirFileEntryEnumIterator1(final SmbTreeHandleImpl th, final SmbResource parent, final String wildcard,
                final ResourceNameFilter filter, final int searchAttributes) throws CIFSException {
            super(th, parent, wildcard, filter, searchAttributes);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileTest.java

                    new SmbFile("invalid url with spaces", mockCifsContext);
                });
            }
        }
    
        @Nested
        class WhenCheckingFileProperties {
    
            @Mock
            private SmbTreeHandleImpl mockTreeHandle;
    
            @BeforeEach
            void setUp() throws CIFSException {
                doReturn(mockTreeHandle).when(smbFile).ensureTreeConnected();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            private boolean throwOnFetch;
            private boolean throwOnCloseInternal;
    
            // Use static factory method to work around constructor ordering
            static TestIterator create(SmbTreeHandleImpl th, SmbResource parent, String wildcard, ResourceNameFilter filter,
                    int searchAttributes, FileEntry initial, List<FileEntry[]> pages) throws CIFSException {
                staticInitial = initial;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        private SmbRandomAccessFile newInstance(String mode, boolean smb2, boolean ntSmbsCap, boolean unshared) throws CIFSException {
            SmbFile file = mock(SmbFile.class);
            SmbTreeHandleImpl tree = mock(SmbTreeHandleImpl.class);
            Configuration cfg = mock(Configuration.class);
            SmbFileHandleImpl fh = mock(SmbFileHandleImpl.class);
    
            when(file.ensureTreeConnected()).thenReturn(tree);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top