- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 67 for createTempFile (0.24 sec)
-
android/guava-tests/test/com/google/common/io/FilesTest.java
File temp1 = createTempFile(); File temp2 = createTempFile(); Files.copy(i18nFile, temp1); moveHelper(true, temp1, temp2); assertTrue(Files.equal(temp2, i18nFile)); } public void testMoveViaCopy() throws IOException { File i18nFile = getTestFile("i18n.txt"); File temp1 = createTempFile(); File temp2 = createTempFile(); Files.copy(i18nFile, temp1);
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
File temp1 = createTempFile(); File temp2 = createTempFile(); Files.copy(i18nFile, temp1); moveHelper(true, temp1, temp2); assertTrue(Files.equal(temp2, i18nFile)); } public void testMoveViaCopy() throws IOException { File i18nFile = getTestFile("i18n.txt"); File temp1 = createTempFile(); File temp2 = createTempFile(); Files.copy(i18nFile, temp1);
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/IoTestCase.java
/** * Creates a new temp file in the temp directory returned by {@link #getTempDir()}. The file will * be deleted in the tear-down for this test. */ protected final File createTempFile() throws IOException { return File.createTempFile("test", null, getTempDir()); } /** Returns a byte array of length size that has values 0 .. size - 1. */ static byte[] newPreFilledByteArray(int size) {
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.6K bytes - Viewed (0) -
internal/config/certs_test.go
} tempFile = tmpfile.Name() return tempFile, err } func TestParsePublicCertFile(t *testing.T) { tempFile1, err := createTempFile("public-cert-file", "") if err != nil { t.Fatalf("Unable to create temporary file. %v", err) } defer os.Remove(tempFile1) tempFile2, err := createTempFile("public-cert-file", `-----BEGIN CERTIFICATE----- MIICdTCCAd4CCQCO5G/W1xcE9TANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJa
Go - Registered: Sun Mar 24 19:28:08 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 21.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
} catch (IOException e) { throw new IllegalStateException("Failed to create directory", e); } } @Override File createTempFile(String prefix) throws IOException { return java.nio.file.Files.createTempFile( Paths.get(JAVA_IO_TMPDIR.value()), /* prefix= */ prefix, /* suffix= */ null, filePermissions.get())
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Fri Oct 06 17:11:11 GMT 2023 - 12.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/IoTestCase.java
/** * Creates a new temp file in the temp directory returned by {@link #getTempDir()}. The file will * be deleted in the tear-down for this test. */ protected final File createTempFile() throws IOException { return File.createTempFile("test", null, getTempDir()); } /** Returns a byte array of length size that has values 0 .. size - 1. */ static byte[] newPreFilledByteArray(int size) {
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.6K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 5.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/SystemHelperTest.java
@Override public void setUp() throws Exception { super.setUp(); final File propFile = File.createTempFile("project", ".properties"); propFile.deleteOnExit(); FileUtil.writeBytes(propFile.getAbsolutePath(), "fess.version=98.76.5".getBytes()); final File desginJspRootFile = File.createTempFile("jsp", ""); desginJspRootFile.delete(); desginJspRootFile.deleteOnExit();
Java - Registered: Mon Mar 25 08:04:08 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 18.5K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java
dir.mkdirs(); markForDeletion(dir); return dir; } public synchronized File createTempFile() throws IOException { File tempFile = File.createTempFile(baseFilename, fileSuffix); tempFile.deleteOnExit(); markForDeletion(tempFile); return tempFile; } public void cleanUp() throws IOException {
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 4.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
} Files.deleteIfExists(dir); return FileVisitResult.CONTINUE; } }); } } private Path createTempFile() throws IOException { return Files.createTempFile(tempDir, "test", ".test"); } public void testByteSource_size_ofDirectory() throws IOException { try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Mon Jan 29 22:57:05 GMT 2024 - 27.2K bytes - Viewed (0)