- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 25 for MaxSize (0.09 seconds)
-
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) -
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) -
src/main/java/org/codelibs/fess/opensearch/config/bsentity/dbmeta/KeyMatchDbm.java
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) -
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) -
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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt
constructor(directory: File, maxSize: Long) : this( FileSystem.SYSTEM, directory.toOkioPath(), maxSize, ) internal val cache = DiskLruCache( fileSystem = fileSystem, directory = directory, appVersion = VERSION, valueCount = ENTRY_COUNT, maxSize = maxSize, taskRunner = taskRunner, )
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 26.9K bytes - Click Count (0) -
src/main/java/jcifs/util/InputValidator.java
* Validates buffer size to prevent overflow * * @param size the buffer size to validate * @param maxSize the maximum allowed size * @param fieldName the field name for error reporting * @throws IllegalArgumentException if size is invalid */ public static void validateBufferSize(int size, int maxSize, String fieldName) { if (size < 0) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 13.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SetViewTest.java
} public void testUnion_maxSize_saturated() { assertThat(union(setSize(Integer.MAX_VALUE), setSize(1)).maxSize()) .isEqualTo(Integer.MAX_VALUE); assertThat(union(setSize(1), setSize(Integer.MAX_VALUE)).maxSize()) .isEqualTo(Integer.MAX_VALUE); } public void testIntersection_minSize() { assertMinSize(intersection(emptySet(), emptySet()), 0);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 29.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} return super.sink(file, mustCreate) } } /** The maximum number of bytes that this cache should use to store its data. */ @get:Synchronized @set:Synchronized var maxSize: Long = maxSize set(value) { field = value if (initialized) { cleanupQueue.schedule(cleanupTask) // Trim the existing store if necessary. } } /*Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 34.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* * <p><b>{@code Stream} equivalent:</b> {@link Stream#limit} (same). * * @param maxSize the maximum number of elements in the returned fluent iterable * @throws IllegalArgumentException if {@code size} is negative */ public final FluentIterable<E> limit(int maxSize) { return from(Iterables.limit(getDelegate(), maxSize)); } /** * Determines whether this fluent iterable is empty. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 34.7K bytes - Click Count (0)