Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for outputFile (0.05 sec)

  1. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                        if (outputFile.isFile() && !outputFile.delete()) {
                            logger.warn("Failed to delete output file: {}", outputFile.getAbsolutePath());
                        }
                        return false;
                    }
    
                    if (outputFile.isFile() && outputFile.length() == 0) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Fri Jul 18 14:34:06 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/thumbnail/impl/EmptyGenerator.java

         *
         * @param thumbnailId the ID of the thumbnail to generate
         * @param outputFile the output file where the thumbnail should be saved
         * @return false always, as this generator does not create thumbnails
         */
        @Override
        public boolean generate(final String thumbnailId, final File outputFile) {
            return false;
        }
    
        /**
         * Destroys this generator and releases any resources.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

            for (int i = 0; i < 5; i++) {
                String thumbnailId = "test-thumbnail-" + i;
                File outputFile = new File(tempDir.toFile(), "thumbnail-" + i + ".png");
                assertTrue(thumbnailGenerator.generate(thumbnailId, outputFile));
                assertTrue(outputFile.exists());
            }
        }
    
        public void test_isTarget_withVariousMimeTypes() {
            // Test with various MIME types
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            final File outputFile = File.createTempFile("command_generator", ".out");
            try {
                assertTrue(outputFile.exists());
                generator.setCommandList(Collections.singletonList("invalid_command_for_test"));
                assertTrue(generator.generate("test_id", outputFile));
            } finally {
                outputFile.delete();
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java

                    generator.saveImage(input, outputFile);
                }
                assertImageSize(outputFile, 100, 66);
    
                imagePath = "thumbnail/600x400.jpg";
                try (ImageInputStream input = ImageIO.createImageInputStream(classLoader.getResourceAsStream(imagePath))) {
                    generator.saveImage(input, outputFile);
                }
                assertImageSize(outputFile, 100, 66);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

                        updateThumbnailField(thumbnailId, StringUtil.EMPTY);
                        if (outputFile.exists() && !outputFile.delete()) {
                            logger.warn("Failed to delete {}", outputFile.getAbsolutePath());
                        }
                    }
                }
                return outputFile.exists();
            });
    
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/CopyUtilTest.java

            int result = copy(inputFile, "UTF-8", outputFile, "Shift_JIS");
            assertThat(result, is(urlString.length()));
    
            result = copy(outputFile, "Shift_JIS", writer);
            assertThat(writer.toString(), is(urlString));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testUrlToFile() throws Exception {
            int result = copy(url, outputFile);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

        public void test_generate() {
            // Test generate method is called correctly
            generator = new TestThumbnailGenerator();
            File outputFile = new File("test.jpg");
    
            assertFalse(generator.isGenerateCalled());
            assertTrue(generator.generate("id123", outputFile));
            assertTrue(generator.isGenerateCalled());
        }
    
        public void test_destroy() {
            // Test destroy method is called correctly
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            emptyGenerator = new EmptyGenerator();
    
            // Test that generate always returns false
            File outputFile = new File("test.jpg");
            assertFalse(emptyGenerator.generate("thumbnailId", outputFile));
            assertFalse(emptyGenerator.generate(null, outputFile));
            assertFalse(emptyGenerator.generate("thumbnailId", null));
            assertFalse(emptyGenerator.generate(null, null));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/thumbnail/ThumbnailGenerator.java

         *
         * @param thumbnailId the unique identifier for the thumbnail
         * @param outputFile the file where the generated thumbnail will be saved
         * @return true if the thumbnail was successfully generated, false otherwise
         */
        boolean generate(String thumbnailId, File outputFile);
    
        /**
         * Checks if this generator can handle the given document.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top