Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getMaxLength (0.33 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/ContentLengthHelperTest.java

            assertEquals(DEFAULT_MAX_LENGTH, contentLengthHelper.getMaxLength(mimeType));
            contentLengthHelper.addMaxLength(mimeType, 1000L);
            assertEquals(1000L, contentLengthHelper.getMaxLength(mimeType));
        }
    
        public void test_getMaxLength_blank() {
            String mimeType;
    
            mimeType = null;
            assertEquals(DEFAULT_MAX_LENGTH, contentLengthHelper.getMaxLength(mimeType));
    
            mimeType = "";
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacUnicodeString.java

            this.length = length;
            this.maxLength = maxLength;
            this.pointer = pointer;
        }
    
    
        public short getLength () {
            return this.length;
        }
    
    
        public short getMaxLength () {
            return this.maxLength;
        }
    
    
        public int getPointer () {
            return this.pointer;
        }
    
    
        public String check ( String string ) throws PACDecodingException {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/ContentLengthHelper.java

            }
            if (maxLength < 0) {
                throw new CrawlerSystemException("The value of maxLength is invalid.");
            }
            maxLengthMap.put(mimeType, maxLength);
        }
    
        public long getMaxLength(final String mimeType) {
            if (StringUtil.isBlank(mimeType)) {
                return defaultMaxLength;
            }
            final Long maxLength = maxLengthMap.get(mimeType);
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

                if (maxContentLength < 0) {
                    final ContentLengthHelper contentLengthHelper = crawlerContainer.getComponent("contentLengthHelper");
                    maxContentLength = contentLengthHelper.getMaxLength(mimeType);
                }
                final long contentLength = getContentLength(out);
                if (contentLength > maxContentLength) {
                    throw new MaxLengthExceededException(
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Mar 14 13:56:25 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top