Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for ensureTreeConnected (0.56 sec)

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

                    }
                    throw e;
                }
                try (SmbFile browser = (SmbFile) parent.resolve(addr.getHostAddress())) {
                    try (SmbTreeHandleImpl th = browser.ensureTreeConnected()) {
                        if (th.isSMB2()) {
                            throw new SmbUnsupportedOperationException();
                        }
                        return new NetServerFileEntryAdapterIterator(parent,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileOutputStream.java

         *
         * @return the tree handle
         * @throws CIFSException if an error occurs connecting to the tree
         */
        protected SmbTreeHandleImpl ensureTreeConnected() throws CIFSException {
            return this.file.ensureTreeConnected();
        }
    
        /**
         * Writes len bytes from the specified byte array starting at
         * offset off to this file output stream.
         *
         * @param b
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            // Given
            // Mock the AutoCloseable tree handle behavior
            SmbTreeHandleImpl autoCloseableMockTreeHandle = mock(SmbTreeHandleImpl.class);
            when(mockFile.ensureTreeConnected()).thenReturn(autoCloseableMockTreeHandle);
            when(autoCloseableMockTreeHandle.isSMB2()).thenReturn(true);
            lenient().when(autoCloseableMockTreeHandle.getConfig()).thenReturn(mockConfig);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

         * Ensures that the tree connection is established and returns it.
         *
         * @return tree connection
         * @throws CIFSException if an error occurs connecting to the tree
         */
        SmbTreeHandleInternal ensureTreeConnected() throws CIFSException;
    
        /**
         * Ensures that the file handle is open and returns it.
         *
         * @return file handle
         * @throws CIFSException if an error occurs opening the file
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileInputStream.java

            this.file = file;
            this.unsharedFile = unshared;
            this.openFlags = openFlags;
            this.access = access;
            this.sharing = sharing;
    
            try (SmbTreeHandleInternal th = file.ensureTreeConnected()) {
                this.smb2 = th.isSMB2();
                if (file.getType() != SmbConstants.TYPE_NAMED_PIPE) {
                    try (SmbFileHandle h = ensureOpen()) {}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            this.file = file;
            this.sharing = sharing;
            this.unsharedFile = unsharedFile;
    
            try (SmbTreeHandleInternal th = this.file.ensureTreeConnected()) {
                if (mode.equals("r")) {
                    this.openFlags = SmbConstants.O_CREAT | SmbConstants.O_RDONLY;
                    this.access = SmbConstants.FILE_READ_DATA;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            SmbTreeHandleImpl tree = mock(SmbTreeHandleImpl.class);
            Configuration cfg = mock(Configuration.class);
            SmbFileHandleImpl fh = mock(SmbFileHandleImpl.class);
    
            when(file.ensureTreeConnected()).thenReturn(tree);
            when(tree.getConfig()).thenReturn(cfg);
            when(tree.getReceiveBufferSize()).thenReturn(1024);
            when(tree.getSendBufferSize()).thenReturn(1024);
    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