- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for MaxSize (0.04 sec)
-
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) -
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); } } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/bsentity/dbmeta/KeyMatchDbm.java
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 27 07:01:25 UTC 2025 - 11.1K bytes - Viewed (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) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (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. } } /*Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 34.7K bytes - Viewed (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) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (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, )
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 03 17:41:45 UTC 2025 - 26.8K bytes - Viewed (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);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.9K bytes - Viewed (0) -
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) -
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. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 34.7K bytes - Viewed (0)