Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getMaxLength (0.37 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 Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacUnicodeString.java

            return this.length;
        }
    
        /**
         * Gets the maximum allocated length for the string in bytes.
         *
         * @return the maximum string length
         */
        public short getMaxLength() {
            return this.maxLength;
        }
    
        /**
         * Gets the pointer/offset to the string data.
         *
         * @return the pointer to the string data
         */
        public int getPointer() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/ContentLengthHelper.java

         * @param mimeType The MIME type to get the maximum length for
         * @return The maximum content length in bytes
         */
        public long getMaxLength(final String mimeType) {
            if (StringUtil.isBlank(mimeType)) {
                return defaultMaxLength;
            }
            final Long maxLength = maxLengthMap.get(mimeType);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            // Verify that the getters return the correct values
            assertEquals(length, pacString.getLength(), "The length should match the value provided in the constructor.");
            assertEquals(maxLength, pacString.getMaxLength(), "The maxLength should match the value provided in the constructor.");
            assertEquals(pointer, pacString.getPointer(), "The pointer should match the value provided in the constructor.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            PacDataInputStream pdis = createInputStream(data);
            PacUnicodeString str = pdis.readUnicodeString();
            assertEquals(4, str.getLength());
            assertEquals(4, str.getMaxLength());
            assertEquals(0x1234, str.getPointer());
        }
    
        @Test
        public void testReadUnicodeStringMalformed() throws IOException {
            // length > maxLength
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top