Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 66 for closeQuietly (0.27 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

                                    logger.debug("Exception in an internal extractor.", e);
                                }
                            } finally {
                                CloseableUtil.closeQuietly(is);
                            }
                        }
                    }
                }
            } catch (final MaxLengthExceededException e) {
                throw e;
            } catch (final Exception e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractorTest.java

        public void test_getText() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/lha/test.lzh");
            final String content = lhaExtractor.getText(in, null).getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("テスト"));
            assertTrue(content.contains("テキスト"));
        }
    
        public void test_getText_maxSize() throws IOException {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java

                            try {
                                addSitemapsFromRobotsTxt(urlQueue);
    
                                if (responseData != null) {
                                    CloseableUtil.closeQuietly(responseData);
                                }
                                if (crawlerContext.intervalController != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ZipExtractorTest.java

        public void test_getText() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/zip/test.zip");
            final String content = zipExtractor.getText(in, null).getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("テスト"));
            assertTrue(content.contains("テキスト"));
        }
    
        public void test_getText_maxSize() throws IOException {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TarExtractorTest.java

        public void test_getText() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/tar/test.tar");
            final String content = tarExtractor.getText(in, null).getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("テスト"));
            assertTrue(content.contains("テキスト"));
        }
    
        public void test_getText_maxSize() throws IOException {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                    responseData.setContentLength(0);
                }
            } catch (final CrawlerSystemException e) {
                CloseableUtil.closeQuietly(responseData);
                throw e;
            } catch (final SmbException e) {
                CloseableUtil.closeQuietly(responseData);
                throw new CrawlingAccessException("Could not access " + uri, e);
            }
    
            return responseData;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TarExtractor.java

            } catch (final Exception e) {
                if (buf.length() == 0) {
                    throw new ExtractException("Could not extract a content.", e);
                }
            } finally {
                CloseableUtil.closeQuietly(ais);
            }
    
            return 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:47:32 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okhttp3.internal.closeQuietly
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HandshakeCertificates
    import org.bouncycastle.tls.TlsFatalAlert
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/storage/StorageClient.java

                    }
                }
            } catch (final CrawlerSystemException e) {
                CloseableUtil.closeQuietly(responseData);
                throw e;
            } catch (final Exception e) {
                CloseableUtil.closeQuietly(responseData);
                throw new CrawlingAccessException("Could not access " + uri, e);
            }
            return responseData;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                    responseData.setContentLength(0);
                }
            } catch (final CrawlerSystemException e) {
                CloseableUtil.closeQuietly(responseData);
                throw e;
            } catch (final SmbException e) {
                CloseableUtil.closeQuietly(responseData);
                throw new CrawlingAccessException("Could not access " + uri, e);
            }
    
            return responseData;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top