- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for openOutputStream (0.13 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) -
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);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.3K bytes - Viewed (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); } @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)