- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 68 for createTempFile (0.52 sec)
-
android/guava/src/com/google/common/io/Files.java
* href="https://github.com/google/guava/issues/4011">CVE-2020-8908</a>.) * * <p>Use this method instead of {@link File#createTempFile(String, String)} when you wish to * create a directory, not a regular file. A common pitfall is to call {@code createTempFile}, * delete the file and create a directory in its place, but this leads a race condition which can
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 33.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/CrawlJob.java
if (hotThreadInterval > -1) { cmdList.add("-h"); cmdList.add(Integer.toString(hotThreadInterval)); } final File propFile = ComponentUtil.getSystemHelper().createTempFile(getExecuteType() + "_", ".properties"); try { cmdList.add("-p"); cmdList.add(propFile.getAbsolutePath()); createSystemProperties(cmdList, propFile);
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 15K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteStreamsTest.java
ByteArrayOutputStream out = new ByteArrayOutputStream(); WritableByteChannel outChannel = Channels.newChannel(out); File testFile = createTempFile(); byte[] dummyData = newPreFilledByteArray(chunkSize); try (FileOutputStream fos = new FileOutputStream(testFile)) { for (int i = 0; i < 500; i++) { fos.write(dummyData); } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
ByteArrayOutputStream out = new ByteArrayOutputStream(); WritableByteChannel outChannel = Channels.newChannel(out); File testFile = createTempFile(); byte[] dummyData = newPreFilledByteArray(chunkSize); try (FileOutputStream fos = new FileOutputStream(testFile)) { for (int i = 0; i < 500; i++) { fos.write(dummyData); } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exec/Crawler.java
systemProperties.reload(options.propertiesPath); } else { try { final File propFile = ComponentUtil.getSystemHelper().createTempFile("crawler_", ".properties"); if (propFile.delete() && logger.isDebugEnabled()) { logger.debug("Deleted a temp file: {}", propFile.getAbsolutePath()); }
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 24.1K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/RequestTest.kt
assertThat(bodyToHex(body)).isEqualTo("48656c6c6f") assertThat(bodyToHex(body), "Retransmit body").isEqualTo("48656c6c6f") } @Test fun file() { val file = File.createTempFile("RequestTest", "tmp") val writer = FileWriter(file) writer.write("abc") writer.close() val contentType = "text/plain".toMediaType() val body: RequestBody = file.asRequestBody(contentType)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.4K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Thu Sep 14 11:48:15 GMT 2023 - 29.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java
private CrawlingConfigHelper crawlingConfigHelper; @Override public void setUp() throws Exception { super.setUp(); final File propFile = File.createTempFile("system", ".properties"); propFile.deleteOnExit(); FileUtil.writeBytes(propFile.getAbsolutePath(), "".getBytes()); ComponentUtil.register(new DynamicProperties(propFile), "systemProperties");
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 23.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java
validate(form, messages -> {}, this::asListHtml); verifyToken(this::asListHtml); final String fileName = form.bulkFile.getFileName(); final File tempFile = ComponentUtil.getSystemHelper().createTempFile("fess_restore_", ".tmp"); try (final InputStream in = form.bulkFile.getInputStream(); final OutputStream out = new FileOutputStream(tempFile)) { CopyUtil.copy(in, out);
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
private fun enableCache(): Cache? { cache = makeCache() client = client.newBuilder().cache(cache).build() return cache } private fun makeCache(): Cache { val cacheDir = File.createTempFile("cache-", ".dir") cacheDir.delete() return Cache(cacheDir, (1024 * 1024).toLong()) } companion object { val anyResponse = CoreMatchers.any(Response::class.java) }
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 56.9K bytes - Viewed (0)