Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for maxSize (1.53 sec)

  1. src/test/java/org/codelibs/core/io/FileUtilTest.java

            } finally {
                out.close();
            }
    
            // Set maxSize larger than file size
            final byte[] bytes = FileUtil.readBytes(file, 1024);
            assertThat(new String(bytes, "UTF-8"), is(content));
        }
    
        /**
         * Test readBytes with custom maxSize - file exceeds limit
         *
         * @throws Exception
         */
        @Test(expected = IORuntimeException.class)
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/main/webapp/WEB-INF/view/admin/keymatch/admin_keymatch_edit.jsp

                                        <label for="maxSize" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.key_match_size"/></label>
                                        <div class="form-inline col-sm-9">
                                            <la:errors property="maxSize"/>
                                            <input type="number" name="maxSize" id="maxSize"
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 13 05:54:52 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/config/bsentity/dbmeta/KeyMatchDbm.java

                false, false, "Long", 0, 0, null, null, false, null, null, null, null, null, false);
        protected final ColumnInfo _columnMaxSize = cci("maxSize", "maxSize", null, null, Integer.class, "maxSize", null, false, false, false,
                "Integer", 0, 0, null, null, false, null, null, null, null, null, false);
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/view/admin/keymatch/admin_keymatch_details.jsp

                                        <tr>
                                            <th><la:message key="labels.key_match_size"/></th>
                                            <td>${f:h(maxSize)}<la:hidden property="maxSize"/></td>
                                        </tr>
                                        <tr>
                                            <th><la:message key="labels.key_match_boost"/></th>
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 13 05:54:52 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

         */
        public static byte[] readBytes(final File file, final long maxSize) {
            assertArgumentNotNull("file", file);
    
            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final FileChannel channel = is.getChannel();
                final long fileSize = ChannelUtil.size(channel);
    
                if (fileSize > maxSize) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        }
      }
    
      public void testSetMaximumSize() {
        // vary maximumSize wrt concurrencyLevel
    
        for (int maxSize = 1; maxSize < 100; maxSize++) {
          checkMaximumSize(1, 8, maxSize);
          checkMaximumSize(2, 8, maxSize);
          checkMaximumSize(4, 8, maxSize);
          checkMaximumSize(8, 8, maxSize);
        }
    
        checkMaximumSize(1, 8, Long.MAX_VALUE);
        checkMaximumSize(2, 8, Long.MAX_VALUE);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 117.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        }
      }
    
      public void testSetMaximumSize() {
        // vary maximumSize wrt concurrencyLevel
    
        for (int maxSize = 1; maxSize < 100; maxSize++) {
          checkMaximumSize(1, 8, maxSize);
          checkMaximumSize(2, 8, maxSize);
          checkMaximumSize(4, 8, maxSize);
          checkMaximumSize(8, 8, maxSize);
        }
    
        checkMaximumSize(1, 8, Long.MAX_VALUE);
        checkMaximumSize(2, 8, Long.MAX_VALUE);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 115.9K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java

            final String sessionId = "poll_session5";
            final int maxSize = 5;
            urlQueueService.setMaxCrawlingQueueSize(maxSize);
    
            // Insert more items than max crawling queue size
            final List<OpenSearchUrlQueue> urlQueueList = new ArrayList<>();
            for (int i = 1; i <= maxSize + 10; i++) {
                final OpenSearchUrlQueue urlQueue = new OpenSearchUrlQueue();
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:40:57 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. src/archive/tar/writer_test.go

    		}
    		return x == y
    	}
    	for _, v := range vectors {
    		t.Run(strings.TrimSuffix(path.Base(v.file), ".base64"), func(t *testing.T) {
    			const maxSize = 10 << 10 // 10KiB
    			buf := new(bytes.Buffer)
    			tw := NewWriter(iotest.TruncateWriter(buf, maxSize))
    
    			for i, tf := range v.tests {
    				switch tf := tf.(type) {
    				case testHeader:
    					err := tw.WriteHeader(&tf.hdr)
    					if !equalError(err, tf.wantErr) {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Mon Dec 15 16:34:13 UTC 2025
    - 40.2K bytes
    - Viewed (0)
  10. src/bytes/bytes_test.go

    }
    
    func BenchmarkEqualBothUnaligned(b *testing.B) {
    	sizes := []int{64, 4 << 10}
    	if !isRaceBuilder {
    		sizes = append(sizes, []int{4 << 20, 64 << 20}...)
    	}
    	maxSize := 2 * (sizes[len(sizes)-1] + 8)
    	if len(bmbuf) < maxSize {
    		bmbuf = make([]byte, maxSize)
    	}
    
    	for _, n := range sizes {
    		for _, off := range []int{0, 1, 4, 7} {
    			buf1 := bmbuf[off : off+n]
    			buf2Start := (len(bmbuf) / 2) + off
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 23:54:14 UTC 2025
    - 62.9K bytes
    - Viewed (0)
Back to top