Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for setMaxContentSize (0.06 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractorTest.java

            try (final InputStream in = ResourceUtil.getResourceAsStream("extractor/lha/test.lzh")) {
                lhaExtractor.setMaxContentSize(100);
                lhaExtractor.getText(in, null);
                fail();
            } catch (MaxLengthExceededException e) {
                // pass
            }
            lhaExtractor.setMaxContentSize(-1);
        }
    
        public void test_getText_null() {
            try {
                lhaExtractor.getText(null, null);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ZipExtractorTest.java

            try (final InputStream in = ResourceUtil.getResourceAsStream("extractor/zip/test.zip")) {
                zipExtractor.setMaxContentSize(100);
                zipExtractor.getText(in, null);
                fail();
            } catch (MaxLengthExceededException e) {
                // pass
            }
            zipExtractor.setMaxContentSize(-1);
        }
    
        public void test_getText_null() {
            try {
                zipExtractor.getText(null, null);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TarExtractorTest.java

            try (final InputStream in = ResourceUtil.getResourceAsStream("extractor/tar/test.tar")) {
                tarExtractor.setMaxContentSize(100);
                tarExtractor.getText(in, null);
                fail();
            } catch (MaxLengthExceededException e) {
                // pass
            }
            tarExtractor.setMaxContentSize(-1);
        }
    
        public void test_getText_null() {
            try {
                tarExtractor.getText(null, null);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

        }
    
        /**
         * Sets the maximum content size for extraction.
         *
         * @param maxContentSize the maximum content size to set (-1 for no limit)
         */
        public void setMaxContentSize(final long maxContentSize) {
            this.maxContentSize = maxContentSize;
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ZipExtractor.java

            return new ExtractData(buf.toString().trim());
        }
    
        /**
         * Sets the maximum content size.
         * @param maxContentSize The maximum content size to set.
         */
        public void setMaxContentSize(final long maxContentSize) {
            this.maxContentSize = maxContentSize;
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TarExtractor.java

            }
    
            return buf.toString().trim();
        }
    
        /**
         * Sets the maximum content size.
         * @param maxContentSize The maximum content size to set.
         */
        public void setMaxContentSize(final long maxContentSize) {
            this.maxContentSize = maxContentSize;
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 5K bytes
    - Viewed (0)
  7. README.md

    crawler.crawlerContext.setMaxDepth(5);               // Limit crawl depth
    
    // Use streaming for large files
    container.singleton("fileTransformer", FileTransformer.class, transformer -> {
        transformer.setMaxContentSize(10 * 1024 * 1024); // 10MB limit
    });
    ```
    
    ## Troubleshooting
    
    ### Common Issues
    
    #### Connection Timeouts
    ```java
    // Increase timeout values
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Aug 31 05:32:52 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top