- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 81 for createTempFile (0.5 sec)
-
src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java
} } private static class TestSystemHelper extends SystemHelper { File tempFile; @Override public File createTempFile(String prefix, String suffix) { try { tempFile = File.createTempFile(prefix, suffix); tempFile.deleteOnExit(); return tempFile; } catch (IOException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
if (tempDocRoot) { docRoot.delete(); } } } protected static File createDocRoot(final int count) { try { final File tempDir = File.createTempFile("crawlerDocRoot", ""); tempDir.delete(); tempDir.mkdirs(); // robots.txt StringBuilder buf = new StringBuilder(); buf.append("User-agent: *").append('\n');
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
} @AndroidIncompatible // ClassPath is documented as not supporting Android public void testScan_classPathCycle() throws IOException { File jarFile = File.createTempFile("with_circular_class_path", ".jar"); try { writeSelfReferencingJarFile(jarFile, "test.txt"); assertThat( new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader())
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 20:58:01 UTC 2025 - 23K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java
validateApi(body, messages -> {}); return asStream("badword.csv").contentTypeOctetStream().stream(out -> { final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-badword-", ".csv").toPath(); try { try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
*/ protected MappingUpdater(final CharMappingItem newItem) { try { newFile = ComponentUtil.getSystemHelper().createTempFile(MAPPING, ".txt"); writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8)); } catch (final Exception e) { if (newFile != null) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 14.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CurlHelperTest.java
} public void test_init_withInvalidSSLCertificate() { // Create a temporary invalid certificate file File invalidCertFile = null; try { invalidCertFile = File.createTempFile("invalid_cert", ".crt"); try (FileWriter writer = new FileWriter(invalidCertFile)) { writer.write("INVALID CERTIFICATE CONTENT"); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 05:35:01 UTC 2025 - 10.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
// Check that we can find a resource if it is visible to the context class // loader, even if it is not visible to the loader of the Resources class. File tempFile = createTempFile(); PrintWriter writer = new PrintWriter(tempFile, "UTF-8"); writer.println("rud a chur ar an méar fhada"); writer.close(); // First check that we can't find it without setting the context loader.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/RelatedContentHelperTest.java
private VirtualHostHelper virtualHostHelper; @Override public void setUp() throws Exception { super.setUp(); // Setup system properties for DI container File file = File.createTempFile("test", ".properties"); file.deleteOnExit(); FileUtil.writeBytes(file.getAbsolutePath(), "test.property=test".getBytes("UTF-8")); DynamicProperties systemProps = new DynamicProperties(file);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exec/SuggestCreator.java
systemProperties.reload(options.propertiesPath); } else { try { final File propFile = ComponentUtil.getSystemHelper().createTempFile("suggest_", ".properties"); if (propFile.delete() && logger.isDebugEnabled()) { logger.debug("Deleted a temp file: {}", propFile.getAbsolutePath()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/SuggestJob.java
} cmdList.add(SuggestCreator.class.getCanonicalName()); cmdList.add("--sessionId"); cmdList.add(sessionId); final File propFile = ComponentUtil.getSystemHelper().createTempFile(getExecuteType() + "_", ".properties"); try { cmdList.add("-p"); cmdList.add(propFile.getAbsolutePath()); createSystemProperties(cmdList, propFile);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 10.5K bytes - Viewed (0)