- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 20 for createNewFile (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.4K bytes - Click Count (0) -
docs/smb3-features/02-persistent-handles-design.md
CIFSContext context = getTestContext(); context.getConfig().setProperty("jcifs.smb.client.useDurableHandles", "true"); SmbFile file = new SmbFile("smb://server/share/test.txt", context); file.createNewFile(); // Write some data try (OutputStream os = file.getOutputStream()) { os.write("test data".getBytes()); } // Simulate network disconnection
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 31.6K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
String path = "target/test-repositories/" + component() + "/bad-local-repository"; File f = new File(getBasedir(), path); f.createNewFile(); return artifactRepositoryFactory.createArtifactRepository( "test", "file://" + f.getPath(), repoLayout, null, null); } protected String getRepositoryLayout() {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 10 09:40:15 GMT 2025 - 13.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 11.7K bytes - Click Count (0) -
docs/smb3-features/01-smb3-lease-design.md
context.getConfig().setProperty("jcifs.smb.client.useLeases", "true"); try (SmbFile file = new SmbFile("smb://server/share/test.txt", context)) { // Open file with lease file.createNewFile(); // Verify lease was granted assertTrue(file.canCacheRead()); // Write should be cached try (OutputStream os = file.getOutputStream()) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 22K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
* existance of the file and it's creation are an atomic operation with * respect to other filesystem activities. * @throws SmbException if an error occurs while creating the file */ public void createNewFile() throws SmbException { if (getUncPath0().length() == 1) { throw new SmbException("Invalid operation for workgroups, servers, or shares"); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 112.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFile.java
log.debug("Failed to close after failure", e2); e.addSuppressed(e2); } throw e; } } @Override public void createNewFile() throws SmbException { if (this.fileLocator.isRootOrShare()) { throw new SmbException("Invalid operation for workgroups, servers, or shares"); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 103.2K bytes - Click Count (0) -
docs/smb3-features/04-directory-leasing-design.md
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 36.2K bytes - Click Count (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
SmbFile file = new SmbFile("smb://server/share/test.txt", context); // Should work even if RDMA provider is not available file.createNewFile(); assertTrue(file.exists()); } ``` ## 8. Performance Monitoring ### 8.1 RDMA Statistics ```java public class RdmaStatistics {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 35.9K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Files.java
*/ @SuppressWarnings("GoodTime") // reading system time without TimeSource public static void touch(File file) throws IOException { checkNotNull(file); if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) { throw new IOException("Unable to update modification time of " + file); } } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jan 05 22:13:21 GMT 2026 - 32.8K bytes - Click Count (0)