- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SmbPipeOutputStream (0.07 sec)
-
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) -
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) -
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)