Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 144 for getPipe (0.04 sec)

  1. src/test/java/jcifs/SmbPipeHandleTest.java

         */
        @Test
        public void testGetPipe() {
            assertEquals(mockPipeResource, smbPipeHandle.getPipe(), "getPipe() should return the underlying pipe resource.");
        }
    
        /**
         * Tests that the getter for the input stream returns the correct stream.
         * @throws CIFSException if an error occurs while getting the stream.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/CIFSContextTest.java

            int pipeType = 1;
            SmbPipeResource mockPipe = mock(SmbPipeResource.class);
            when(mockContext.getPipe(url, pipeType)).thenReturn(mockPipe);
    
            // When
            SmbPipeResource pipe = mockContext.getPipe(url, pipeType);
    
            // Then
            assertEquals(mockPipe, pipe);
            verify(mockContext).getPipe(url, pipeType);
        }
    
        @Test
        @DisplayName("Should close context")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        @Mock
        SmbFileHandleImpl fileHandle;
    
        private SmbPipeOutputStream newStream() throws CIFSException {
            // Arrange common constructor collaborators to avoid touching network/state
            when(handle.getPipe()).thenReturn(pipe);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getSendBufferSize()).thenReturn(4096);
            // Act
            return new SmbPipeOutputStream(handle, tree);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbPipeOutputStream.java

        /**
         * @param handle
         * @throws SmbException
         */
        SmbPipeOutputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException {
            super(handle.getPipe(), th, null, 0, 0, 0);
            this.handle = handle;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbFileOutputStream#isOpen()
         */
        @Override
        public boolean isOpen() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/context/CIFSContextWrapper.java

                throw new CIFSException("Invalid URL " + url, e);
            }
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getPipe(java.lang.String, int)
         */
        @Override
        public SmbPipeResource getPipe(final String url, final int pipeType) throws CIFSException {
            try {
                return new SmbNamedPipe(url, pipeType, this);
            } catch (final MalformedURLException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            // Act
            SmbPipeHandle handle = pipe.openPipe();
    
            // Assert: observable handle behavior without network I/O
            assertNotNull(handle, "Handle must not be null");
            assertSame(pipe, handle.getPipe(), "Handle should reference originating pipe");
            assertSame(handle, handle.unwrap(SmbPipeHandle.class), "unwrap should return same instance for interface type");
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/context/BaseContext.java

                throw new CIFSException("Invalid URL " + url, e);
            }
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getPipe(java.lang.String, int)
         */
        @Override
        public SmbPipeResource getPipe(final String url, final int pipeType) throws CIFSException {
            try {
                return new SmbNamedPipe(url, pipeType, this);
            } catch (final MalformedURLException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbPipeHandle.java

     *
     */
    public interface SmbPipeHandle extends AutoCloseable {
    
        /**
         * Gets the pipe resource associated with this handle.
         *
         * @return the pipe
         */
        SmbPipeResource getPipe();
    
        /**
         * Gets the input stream for reading from this pipe.
         *
         * @return this pipe's input stream
         * @throws CIFSException if an error occurs getting the input stream
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbPipeInputStream.java

        /**
         * @param handle
         * @param th
         * @throws SmbException
         */
        SmbPipeInputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException {
            super(handle.getPipe(), th, null);
            this.handle = handle;
        }
    
        /**
         * Ensures that the tree connection is established.
         *
         * @return the tree handle implementation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/CIFSContext.java

         * @param pipeType
         *            the type of the pipe
         * @return the SMB pipe resource at the specified location
         * @throws CIFSException if the pipe resource cannot be accessed
         */
        SmbPipeResource getPipe(String url, int pipeType) throws CIFSException;
    
        /**
         * Close all connections and release resources associated with this context
         *
         * @return whether any connection was still in use
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top