- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for openOutputStream (0.1 seconds)
-
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (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; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 28K bytes - Click Count (1) -
android/guava/src/com/google/common/io/Closer.java
* * {@snippet : * Closer closer = Closer.create(); * try { * InputStream in = closer.register(openInputStream()); * OutputStream out = closer.register(openOutputStream()); * // do stuff * } catch (Throwable e) { * // ensure that any checked exception types other than IOException that could be thrown are * // provided here, e.g. throw closer.rethrow(e, CheckedException.class);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 10.3K bytes - Click Count (0) -
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); } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 103.2K bytes - Click Count (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 contentCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0)