Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ensureOpen (0.07 sec)

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

                }
                else {
                    throw new IllegalArgumentException("Invalid mode");
                }
    
                try ( SmbFileHandle h = ensureOpen() ) {}
                this.readSize = th.getReceiveBufferSize() - 70;
                this.writeSize = th.getSendBufferSize() - 70;
    
                if ( th.hasCapability(SmbConstants.CAP_LARGE_READX) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileOutputStream.java

            this.access = access | SmbConstants.FILE_WRITE_DATA;
    
            try ( SmbTreeHandleImpl th = file.ensureTreeConnected() ) {
                this.smb2 = th.isSMB2();
                try ( SmbFileHandleImpl fh = ensureOpen() ) {
                    if ( append ) {
                        this.fp = fh.getInitialSize();
                    }
                    init(th);
                    if ( !append && this.smb2 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:14:04 UTC 2021
    - 11.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

         */
        @Override
        public boolean isStale () {
            return !this.open || ( this.handle != null && !this.handle.isValid() );
        }
    
    
        @Override
        public synchronized SmbFileHandleImpl ensureOpen () throws CIFSException {
            if ( !this.open ) {
                throw new SmbException("Pipe handle already closed");
            }
    
            if ( !isOpen() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Apr 13 17:05:22 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileInputStream.java

         * @throws CIFSException
         */
        public void open () throws CIFSException {
            try ( SmbFileHandleImpl fh = ensureOpen() ) {}
        }
    
    
        /**
         * @param file
         * @param openFlags
         * @return
         * @throws SmbException
         */
        synchronized SmbFileHandleImpl ensureOpen () throws CIFSException {
            if ( this.handle == null || !this.handle.isValid() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/NameServiceClientImpl.java

    
        int getNextNameTrnId () {
            if ( ( ++this.nextNameTrnId & 0xFFFF ) == 0 ) {
                this.nextNameTrnId = 1;
            }
            return this.nextNameTrnId;
        }
    
    
        void ensureOpen ( int timeout ) throws IOException {
            this.closeTimeout = 0;
            if ( this.transportContext.getConfig().getNetbiosSoTimeout() != 0 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 14 14:26:22 UTC 2022
    - 38.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

            }
        }
    
        int getNextNameTrnId() {
            if(( ++nextNameTrnId & 0xFFFF ) == 0 ) {
                nextNameTrnId = 1;
            }
            return nextNameTrnId;
        }
        void ensureOpen( int timeout ) throws IOException {
            closeTimeout = 0;
            if( SO_TIMEOUT != 0 ) {
                closeTimeout = Math.max( SO_TIMEOUT, timeout );
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 17.4K bytes
    - Viewed (0)
Back to top