Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for deleteInBackground (0.21 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/ResponseDataUtil.java

                fos = new FileOutputStream(tempFile);
                CopyUtil.copy(is, fos);
            } catch (final Exception e) {
                CloseableUtil.closeQuietly(fos); // for deleting file
                FileUtil.deleteInBackground(tempFile); // clean up
                throw new CrawlingAccessException("Could not read a response body: " + responseData.getUrl(), e);
            } finally {
                CloseableUtil.closeQuietly(fos);
            }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JodExtractor.java

            } catch (final IOException | OfficeException e) {
                throw new ExtractException("Could not extract a content.", e);
            } finally {
                FileUtil.deleteInBackground(inputFile);
                FileUtil.deleteInBackground(outputFile);
            }
        }
    
        protected String getOutputContent(final File outputFile, final String outExt) {
            final Extractor extractor = getExtractor(outExt);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java

            return fileInputStream.available();
        }
    
        @Override
        public void close() throws IOException {
            try {
                fileInputStream.close();
            } finally {
                FileUtil.deleteInBackground(tempFile);
            }
        }
    
        @Override
        public synchronized void mark(final int readlimit) {
            fileInputStream.mark(readlimit);
        }
    
        @Override
        public boolean markSupported() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

                return extractData;
            } catch (final IOException e) {
                throw new ExtractException("Could not extract a content.", e);
            } finally {
                FileUtil.deleteInBackground(inputFile);
                FileUtil.deleteInBackground(outputFile);
            }
        }
    
        String getFileName(final String resourceName) {
            final String name = resourceName.replaceAll("/+$", "");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. 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());
        }
    
        public void setMaxContentSize(final long maxContentSize) {
            this.maxContentSize = maxContentSize;
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java

            requestData.setUrl(url);
            return requestData;
        }
    
        @Override
        public void close() throws IOException {
            if (isTemporaryFile) {
                FileUtil.deleteInBackground(responseBodyFile);
            }
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                                    logger.warn("I/O Exception.", e);
                                    responseData.setHttpStatusCode(Constants.SERVER_ERROR_STATUS_CODE);
                                    FileUtil.deleteInBackground(outputFile);
                                }
                            }
                            if (logger.isDebugEnabled()) {
                                logger.debug("Parsing SmbFile MIME Type: {}", filePath);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

                    }
                }
            } catch (final Exception e) {
                throw new ExtractException("Could not extract a content.", e);
            } finally {
                FileUtil.deleteInBackground(tempFile);
            }
        }
    
        protected ParseContext createParseContext(final Parser parser, final Map<String, String> params) {
            final ParseContext parseContext = new ParseContext();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/FileUtil.java

                ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes));
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        public static void deleteInBackground(final File file) {
            if (file != null) {
                TimeoutManager.getInstance().addTimeoutTarget(() -> {
                    try {
                        Files.deleteIfExists(file.toPath());
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/storage/StorageClient.java

                            logger.warn("I/O Exception.", e);
                            responseData.setHttpStatusCode(Constants.SERVER_ERROR_STATUS_CODE);
                            FileUtil.deleteInBackground(outputFile);
                        }
                    }
    
                    final MimeTypeHelper mimeTypeHelper = crawlerContainer.getComponent("mimeTypeHelper");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top