Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ensureOpen (0.1 sec)

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

            return this.handle.ensureTreeConnected();
        }
    
        @Override
        protected synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
            return this.handle.ensureOpen();
        }
    
        /**
         * Gets the pipe handle implementation for this output stream.
         *
         * @return the handle
         */
        protected SmbPipeHandleImpl getHandle() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        }
    
        @Test
        @DisplayName("ensureOpen delegates and returns the file handle")
        void ensureOpen_delegatesAndReturns() throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
            when(handle.ensureOpen()).thenReturn(fileHandle);
    
            // Act
            SmbFileHandleImpl result = out.ensureOpen();
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbPipeInputStream.java

            return this.handle.ensureTreeConnected();
        }
    
        @Override
        protected synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
            return this.handle.ensureOpen();
        }
    
        /**
         * This stream class is unbuffered. Therefore this method will always
         * return 0 for streams connected to regular files. However, a
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TransactNamedPipeOutputStream.java

                pipe.send(new TransCallNamedPipe(path, b, off, len), new TransCallNamedPipeResponse(pipe));
            } else if ((pipe.pipeType & SmbNamedPipe.PIPE_TYPE_TRANSACT) == SmbNamedPipe.PIPE_TYPE_TRANSACT) {
                ensureOpen();
                final TransTransactNamedPipe req = new TransTransactNamedPipe(pipe.fid, b, off, len);
                if (dcePipe) {
                    req.maxDataCount = 1024;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

        /**
         * Ensures that the file handle is open and returns it.
         *
         * @return file handle
         * @throws CIFSException if an error occurs opening the file
         */
        SmbFileHandle ensureOpen() throws CIFSException;
    
        /**
         * Receive data from the pipe
         *
         * @param buf buffer to receive data into
         * @param off offset in the buffer
         * @param length maximum length to receive
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
Back to top