Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 66 for MaxSize (0.05 seconds)

  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)
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/util/ServerResponseValidator.java

            }
    
            int maxSize = isSmb1 ? MAX_SMB1_MESSAGE_SIZE : MAX_SMB_MESSAGE_SIZE;
            if (size > maxSize) {
                failedValidations.incrementAndGet();
                log.warn("Message size exceeds maximum: {} > {}", size, maxSize);
                throw new SmbException("Message size exceeds maximum: " + size + " > " + maxSize);
            }
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.6K bytes
    - Click Count (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);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 27 07:01:25 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  4. 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) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  5. prepare_stmt.go

    func NewPreparedStmtDB(connPool ConnPool, maxSize int, ttl time.Duration) *PreparedStmtDB {
    	return &PreparedStmtDB{
    		ConnPool: connPool,                     // Assigns the provided connection pool to manage database connections.
    		Stmts:    stmt_store.New(maxSize, ttl), // Initializes a new statement store with the specified maximum size and TTL.
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Apr 25 08:22:26 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/TestFileWagon.java

        @Deprecated
        protected void getTransfer(Resource resource, File destination, InputStream input, boolean closeInput, int maxSize)
                throws TransferFailedException {
            addTransfer("getTransfer " + resource.getName());
            super.getTransfer(resource, destination, input, closeInput, maxSize);
        }
    
        @Override
        public void get(String resourceName, File destination)
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  7. 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"
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 6K bytes
    - Click Count (0)
  8. 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>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/chat/ChatSessionManager.java

        protected void enforceMaxSize() {
            final int maxSize = getMaxSessionSize();
            synchronized (sessionCache) {
                if (sessionCache.size() <= maxSize) {
                    return;
                }
    
                final int toRemove = sessionCache.size() - maxSize;
                logger.warn("Session cache reached maximum size. Removing oldest sessions. currentSize={}, maxSize={}, removing={}",
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/Sets.java

          }
    
          @Override
          int minSize() {
            int difference = minSize(set1) - maxSize(set2);
            return difference >= 0 ? difference : max(minSize(set2) - maxSize(set1), 0);
          }
    
          @Override
          int maxSize() {
            return saturatedAdd(maxSize(set1), maxSize(set2));
          }
        };
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 83K bytes
    - Click Count (0)
Back to Top