- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for openOutputStream (0.06 sec)
-
src/test/java/jcifs/SmbResourceTest.java
// Given when(mockResource.openOutputStream()).thenReturn(mockOutputStream); when(mockResource.openOutputStream(anyBoolean())).thenReturn(mockOutputStream); when(mockResource.openOutputStream(anyBoolean(), anyInt())).thenReturn(mockOutputStream); when(mockResource.openOutputStream(anyBoolean(), anyInt(), anyInt(), anyInt())).thenReturn(mockOutputStream);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
String newContent = "New content\n"; // Write initial content try (OutputStream out = file.openOutputStream(false)) { out.write(initialContent.getBytes("UTF-8")); } // Overwrite with new content try (OutputStream out = file.openOutputStream(false)) { out.write(newContent.getBytes("UTF-8")); } // Verify new content
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
*/ OutputStream openOutputStream(boolean append) throws CIFSException; /** * Opens an output stream writing to the file (truncating, write only, sharable) * * @return output stream, needs to be closed when finished * @throws CIFSException if an error occurs accessing the resource */ OutputStream openOutputStream() throws CIFSException; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
src/main/java/jcifs/smb/SmbFile.java
@Override public SmbFileOutputStream openOutputStream() throws SmbException { return new SmbFileOutputStream(this); } @Override public SmbFileOutputStream openOutputStream(final boolean append) throws SmbException { return openOutputStream(append, FILE_SHARE_READ); } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)