Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SmbPipeOutputStream (0.14 sec)

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

     * data to SMB named pipes over the network.
     *
     * @author mbechler
     */
    public class SmbPipeOutputStream extends SmbFileOutputStream {
    
        private final SmbPipeHandleImpl handle;
    
        /**
         * @param handle
         * @throws SmbException
         */
        SmbPipeOutputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException {
            super(handle.getPipe(), th, null, 0, 0, 0);
    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

        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);
        }
    
        @ParameterizedTest
    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/SmbPipeHandleImpl.java

         */
        @Override
        public SmbPipeOutputStream getOutput() throws CIFSException {
            if (!this.open) {
                throw new SmbException("Already closed");
            }
    
            if (this.output != null) {
                return this.output;
            }
    
            try (SmbTreeHandleImpl th = ensureTreeConnected()) {
                this.output = new SmbPipeOutputStream(this, th);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Act: first calls construct streams, second calls return cached
            SmbPipeInputStream in1 = handle.getInput();
            SmbPipeInputStream in2 = handle.getInput();
            SmbPipeOutputStream out1 = handle.getOutput();
            SmbPipeOutputStream out2 = handle.getOutput();
    
            // Assert: same instances are returned subsequently
            assertSame(in1, in2, "Input stream should be cached");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        @Test
        @DisplayName("send delegates to output.writeDirect with provided args")
        void testSendDelegation() throws Exception {
            SmbPipeHandleImpl spyTarget = spy(target);
            SmbPipeOutputStream out = mock(SmbPipeOutputStream.class);
            doReturn(out).when(spyTarget).getOutput();
    
            byte[] b = new byte[] { 10, 11, 12 };
            spyTarget.send(b, 1, 2);
            verify(out).writeDirect(b, 1, 2, 1);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

        @Override
        SmbPipeInputStream getInput() throws CIFSException;
    
        /**
         *
         * @return this pipe's output stream
         * @throws CIFSException if an error occurs
         */
        @Override
        SmbPipeOutputStream getOutput() throws CIFSException;
    
        /**
         * Ensures that the tree connection is established and returns it.
         *
         * @return tree connection
    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