Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for deleteInBackground (0.06 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java

                assertEquals('a', stream.read());
                assertEquals(-1, stream.read()); // EOF
            }
    
            // File should be deleted after close
            // Note: FileUtil.deleteInBackground() is async, so we can't reliably test this
        }
    
        public void test_available() throws Exception {
            // Create a temporary file with test data
            File tempFile = File.createTempFile("test-", ".tmp");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/ResponseDataUtil.java

                try (final FileOutputStream fos = new FileOutputStream(tempFile)) {
                    CopyUtil.copy(is, fos);
                }
            } catch (final Exception e) {
                FileUtil.deleteInBackground(tempFile); // clean up
                throw new CrawlingAccessException("Could not read a response body: " + responseData.getUrl(), e);
            }
            return tempFile;
        }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

                    try {
                        lhaFile.close();
                    } catch (final IOException e) {
                        // ignore
                    }
                }
                FileUtil.deleteInBackground(tempFile);
            }
    
            return new ExtractData(buf.toString().trim());
        }
    
        /**
         * Sets the maximum content size for extraction.
         *
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java

         * @throws IOException if an I/O error occurs.
         */
        @Override
        public void close() throws IOException {
            try {
                fileInputStream.close();
            } finally {
                FileUtil.deleteInBackground(tempFile);
            }
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top