Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for hasCapability (0.43 sec)

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

         */
        void ensureDFSResolved () throws CIFSException;
    
    
        /**
         * @param cap
         * @return whether the capabiltiy is present
         * @throws CIFSException
         */
        boolean hasCapability ( int cap ) throws CIFSException;
    
    
        /**
         * @return the send buffer size of the underlying connection
         * @throws CIFSException
         */
        int getSendBufferSize () throws CIFSException;
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

        public void ensureDFSResolved () throws CIFSException {
            this.treeConnection.ensureDFSResolved(this.resourceLoc);
        }
    
    
        @Override
        public boolean hasCapability ( int cap ) throws SmbException {
            return this.treeConnection.hasCapability(cap);
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbTreeHandle#isConnected()
         */
        @Override
        public boolean isConnected () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                }
    
                try ( SmbFileHandle h = ensureOpen() ) {}
                this.readSize = th.getReceiveBufferSize() - 70;
                this.writeSize = th.getSendBufferSize() - 70;
    
                if ( th.hasCapability(SmbConstants.CAP_LARGE_READX) ) {
                    this.largeReadX = true;
                    this.readSize = Math.min(th.getConfig().getReceiveBufferSize() - 70, th.areSignaturesActive() ? 0xFFFF - 70 : 0xFFFFFF - 70);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportInternal.java

     *
     */
    public interface SmbTransportInternal extends SmbTransport {
    
        /**
         * @param cap
         * @return whether the transport has the given capability
         * @throws SmbException
         */
        boolean hasCapability ( int cap ) throws SmbException;
    
    
        /**
         * @return whether the transport has been disconnected
         */
        boolean isDisconnected ();
    
    
        /**
         * @param hard
         * @param inuse
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/OplockTests.java

                        if ( ! ( e.getCause() instanceof RequestTimeoutException ) ) {
                            throw e;
                        }
                    }
                }
                else if ( trans.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                    int flags = SmbConstants.O_CREAT;
                    int sharing = SmbConstants.FILE_SHARE_DELETE | SmbConstants.FILE_SHARE_READ | SmbConstants.FILE_SHARE_WRITE;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

                    r.setNotifyFlags(this.recursive ? Smb2ChangeNotifyRequest.SMB2_WATCH_TREE : 0);
                    req = r;
                }
                else {
                    if ( !th.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                        throw new SmbUnsupportedOperationException("Not supported without CAP_NT_SMBS");
                    }
    
                    /*
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFileOutputStream.java

            this.writeSize = sendBufferSize - 70;
    
            this.useNTSmbs = th.hasCapability(SmbConstants.CAP_NT_SMBS);
            if ( !this.useNTSmbs ) {
                log.debug("No support for NT SMBs");
            }
    
            // there seems to be a bug with some servers that causes corruption if using signatures +
            // CAP_LARGE_WRITE
            if ( th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:14:04 UTC 2021
    - 11.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeConnection.java

         * @throws SmbException
         */
        public boolean hasCapability ( int cap ) throws SmbException {
            try ( SmbSessionImpl s = getSession() ) {
                if ( s != null ) {
                    try ( SmbTransportImpl transport = s.getTransport() ) {
                        return transport.hasCapability(cap);
                    }
                }
                throw new SmbException("Not connected");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 31K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbCopyUtil.java

                        req.setFileInformation(new FileBasicInfo(ctime, atime, mtime, 0L, attrs));
                        dh.send(req);
                    }
                    else if ( dh.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                        // use the open file descriptor
                        dh.send(
                            new Trans2SetFileInformation(dh.getConfig(), dfd.getFid(), attrs, ctime, mtime, atime),
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 17.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                        th.send(new TransWaitNamedPipe(th.getConfig(), this.uncPath), new TransWaitNamedPipeResponse(th.getConfig()));
                    }
    
                    if ( th.hasCapability(SmbConstants.CAP_NT_SMBS) || this.uncPath.startsWith("\\pipe\\") ) {
                        this.handle = this.pipe.openUnshared(this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, 0);
                    }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Apr 13 17:05:22 UTC 2020
    - 10.3K bytes
    - Viewed (0)
Back to top