Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for IsValid (0.2 sec)

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

        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbWatchHandle#watch()
         */
        @Override
        public List<FileNotifyInformation> watch () throws CIFSException {
            if ( !this.handle.isValid() ) {
                throw new SmbException("Watch was broken by tree disconnect");
            }
            try ( SmbTreeHandleImpl th = this.handle.getTree() ) {
    
                CommonServerMessageBlockRequest req;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbPipeHandle#isOpen()
         */
        @Override
        public boolean isOpen () {
            return this.open && this.handle != null && this.handle.isValid();
        }
    
    
        /**
         * 
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbPipeHandleInternal#getSessionKey()
         */
        @Override
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Apr 13 17:05:22 GMT 2020
    - 10.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileOutputStream.java

         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public void close () throws IOException {
            try {
                if ( this.handle.isValid() ) {
                    this.handle.close();
                }
            }
            finally {
                this.file.clearAttributeCache();
                this.tmp = null;
            }
        }
    
    
        /**
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbFileHandle.java

    public interface SmbFileHandle extends AutoCloseable {
    
        /**
         * @return the tree
         */
        SmbTreeHandle getTree ();
    
    
        /**
         * @return whether the file descriptor is valid
         */
        boolean isValid ();
    
    
        /**
         * @param lastWriteTime
         * @throws CIFSException
         */
        void close ( long lastWriteTime ) throws CIFSException;
    
    
        /**
         * {@inheritDoc}
         *
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileHandleImpl.java

         * @throws SmbException
         */
        public int getFid () throws SmbException {
            if ( !isValid() ) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fid;
        }
    
    
        public byte[] getFileId () throws SmbException {
            if ( !isValid() ) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fileId;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

        public boolean isSigningNegotiated () {
            return ( this.negotiatedFlags2 & SmbConstants.FLAGS2_SECURITY_SIGNATURES ) == SmbConstants.FLAGS2_SECURITY_SIGNATURES;
        }
    
    
        @Override
        public boolean isValid ( CIFSContext ctx, SmbNegotiationRequest req ) {
            if ( getDialectIndex() > 10 ) {
                return false;
            }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 15.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

         */
        @Override
        public boolean canReuse ( CIFSContext tc, boolean forceSigning ) {
            return getConfig().equals(tc.getConfig());
        }
    
    
        @Override
        public boolean isValid ( CIFSContext tc, SmbNegotiationRequest req ) {
            if ( !isReceived() || getStatus() != 0 ) {
                return false;
            }
    
            if ( req.isSigningEnforced() && !isSigningEnabled() ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Mar 22 10:09:46 GMT 2020
    - 17.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/SmbNegotiationResponse.java

        /**
         * 
         * @param cifsContext
         * @param singingEnforced
         * @param request
         * @return whether the protocol negotiation was successful
         */
        boolean isValid ( CIFSContext cifsContext, SmbNegotiationRequest request );
    
    
        /**
         * 
         * @return selected dialect
         */
        DialectVersion getSelectedDialect ();
    
    
        /**
         * 
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        /**
         * @return
         * @throws SmbException
         */
        synchronized SmbFileHandleImpl ensureOpen () throws CIFSException {
            // ensure file is open
            if ( this.handle == null || !this.handle.isValid() ) {
                // one extra acquire to keep this open till the stream is released
                this.handle = this.file.openUnshared(this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, this.options).acquire();
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileInputStream.java

         * @param file
         * @param openFlags
         * @return
         * @throws SmbException
         */
        synchronized SmbFileHandleImpl ensureOpen () throws CIFSException {
            if ( this.handle == null || !this.handle.isValid() ) {
                // one extra acquire to keep this open till the stream is released
                if ( this.file instanceof SmbNamedPipe ) {
                    this.handle = this.file.openUnshared(
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
Back to top