Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getTreeType (0.04 sec)

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

                }
                return null;
            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbTreeHandle#getTreeType()
         */
        @Override
        public int getTreeType() {
            return this.treeConnection.getTreeType();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbTreeHandle#getConnectedShare()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeConnection.java

            }
        }
    
        /**
         * Only call this method while holding a tree handle
         *
         * @return the connected tree type
         */
        public int getTreeType() {
            try (SmbTreeImpl t = getTree()) {
                return t.getTreeType();
            }
        }
    
        /**
         *
         * Only call this method while holding a tree handle
         *
         * @return the share we are connected to
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

        public boolean isConnected() {
            return this.tid != -1 && this.session.isConnected() && this.connectionState.get() == 2;
        }
    
        /**
         * @return the type of this tree
         */
        public int getTreeType() {
            final String connectedService = getService();
            if ("LPT1:".equals(connectedService)) {
                return SmbConstants.TYPE_PRINTER;
            }
            if ("COMM".equals(connectedService)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFile.java

            try {
                final int t = this.fileLocator.getType();
                if (t == TYPE_SHARE) {
                    try (SmbTreeHandle th = ensureTreeConnected()) {
                        this.fileLocator.updateType(th.getTreeType());
                    }
                }
                return t;
            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
            }
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top