Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for TempFile (0.04 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/plugin/AdminPluginAction.java

                    final File tempFile = ComponentUtil.getSystemHelper().createTempFile("tmp-adminplugin-", ".jar");
                    try (final InputStream is = form.jarFile.getInputStream(); final OutputStream os = new FileOutputStream(tempFile)) {
                        CopyUtil.copy(is, os);
                    } catch (final Exception e) {
                        if (tempFile.exists() && !tempFile.delete()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/ResponseDataUtilTest.java

                }
            };
    
            File tempFile = ResponseDataUtil.createResponseBodyFile(responseData);
    
            assertNotNull(tempFile);
            assertTrue(tempFile.exists());
    
            // Verify file permissions (readable and writable by owner)
            assertTrue(tempFile.canRead());
            assertTrue(tempFile.canWrite());
    
            // Clean up
            tempFile.delete();
        }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java

            // Create a temporary file with test data
            File tempFile = File.createTempFile("test-", ".tmp");
            try (FileOutputStream fos = new FileOutputStream(tempFile)) {
                fos.write("Test data".getBytes());
            }
    
            // Read from TemporaryFileInputStream
            try (TemporaryFileInputStream stream = new TemporaryFileInputStream(tempFile)) {
                assertEquals('T', stream.read());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/ResponseDataUtil.java

            File tempFile = null;
            try (final InputStream is = responseData.getResponseBody()) {
                tempFile = File.createTempFile("crawler-", ".tmp");
                tempFile.setReadable(false, false);
                tempFile.setReadable(true, true);
                tempFile.setWritable(false, false);
                tempFile.setWritable(true, true);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/sereq/AdminSereqAction.java

                    final File tempFile = ComponentUtil.getSystemHelper().createTempFile("sereq_", ".json");
                    try (final InputStream in = response.getContentAsStream()) {
                        CopyUtil.copy(in, tempFile);
                    } catch (final Exception e1) {
                        if (tempFile != null && tempFile.exists() && !tempFile.delete()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                            tempFile.getAbsolutePath());
                }
            } catch (final IOException e) {
                logger.warn("Failed to upload backup file: fileName={}, error={}", fileName, e.getMessage(), e);
                if (tempFile.exists() && !tempFile.delete()) {
                    logger.warn("Failed to delete temporary file: {}", tempFile.getAbsolutePath());
                }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Mon Nov 24 02:07:40 UTC 2025
    - 32.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            tempFile = File.createTempFile("test", ".tmp", Curl.tmpDir);
            Files.write(tempFile.toPath(), "Hello, World!".getBytes());
            assertTrue(tempFile.exists());
    
            ContentCache cache = new ContentCache(tempFile);
    
            // Close should delete the file
            cache.close();
    
            assertFalse(tempFile.exists());
        }
    
        @Test
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java

                    "Expected " + upperCaseFileSource + " to equal " + lowerCaseFileSource);
        }
    
        private File createTempFile(String name) throws IOException {
            File tempFile = File.createTempFile(name, ".xml");
            tempFile.deleteOnExit();
            return tempFile;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

            final StringBuilder buf = new StringBuilder(1000);
    
            File tempFile = null;
            LhaFile lhaFile = null;
            try {
                tempFile = createTempFile("crawler-", ".lzh", null);
                try (FileOutputStream fos = new FileOutputStream(tempFile)) {
                    CopyUtil.copy(in, fos);
                }
    
                lhaFile = new LhaFile(tempFile);
                @SuppressWarnings("unchecked")
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java

            File tempFile = File.createTempFile("test_non_temp", ".txt");
            try {
                Files.write(tempFile.toPath(), "content".getBytes(StandardCharsets.UTF_8));
    
                data.setResponseBody(tempFile, false);
    
                // Close should not delete non-temporary file
                data.close();
    
                assertTrue(tempFile.exists());
            } finally {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top