Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SmbPipeInputStream (0.13 sec)

  1. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(tree.hasCapability(anyInt())).thenReturn(false);
            return new SmbPipeInputStream(handle, tree);
        }
    
        private SmbPipeInputStream newStreamWithMinimalStubs(boolean smb2) throws CIFSException {
            when(handle.getPipe()).thenReturn(pipe);
            when(tree.isSMB2()).thenReturn(smb2);
            return new SmbPipeInputStream(handle, tree);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

         */
        @Override
        public SmbPipeInputStream getInput() throws CIFSException {
    
            if (!this.open) {
                throw new SmbException("Already closed");
            }
    
            if (this.input != null) {
                return this.input;
            }
    
            try (SmbTreeHandleImpl th = ensureTreeConnected()) {
                this.input = new SmbPipeInputStream(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)
  3. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            when(tree.getReceiveBufferSize()).thenReturn(4096);
    
            // 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();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        @Test
        @DisplayName("recv delegates to input.readDirect and returns its value")
        void testRecvDelegation() throws Exception {
            SmbPipeHandleImpl spyTarget = spy(target);
            SmbPipeInputStream in = mock(SmbPipeInputStream.class);
            doReturn(in).when(spyTarget).getInput();
            when(in.readDirect(any(), anyInt(), anyInt())).thenReturn(7);
    
            byte[] b = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top