Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getMaxLength (0.29 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: Sun Nov 10 03:50:12 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: Sun Nov 03 00:10:13 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: Sun Nov 10 03:50:12 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: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

                        }
    
                        if (contentLengthHelper != null) {
                            final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType());
                            if (responseData.getContentLength() > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + responseData.getContentLength()
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                            }
                        }
                        if (contentLengthHelper != null) {
                            final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType());
                            if (responseData.getContentLength() > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + responseData.getContentLength()
    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/client/storage/StorageClient.java

                statObject.headers().forEach(e -> responseData.addMetaData(e.getFirst(), e.getSecond()));
    
                if (contentLengthHelper != null) {
                    final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType());
                    if (responseData.getContentLength() > maxLength) {
                        throw new MaxLengthExceededException("The content length (" + responseData.getContentLength() + " byte) is over "
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                            }
                        }
                        if (contentLengthHelper != null) {
                            final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType());
                            if (responseData.getContentLength() > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + responseData.getContentLength()
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                        final long contentLength = Long.parseLong(value);
                        if (contentLengthHelper != null) {
                            final long maxLength = contentLengthHelper.getMaxLength("text/plain");
                            if (contentLength > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + contentLength + " byte) is over " + maxLength
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:29:26 UTC 2024
    - 41K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                        }
    
                        if (contentLengthHelper != null) {
                            final long maxLength = contentLengthHelper.getMaxLength(responseData.getMimeType());
                            if (responseData.getContentLength() > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + responseData.getContentLength()
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
Back to top