- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MAX_BUF_SIZE (0.14 sec)
-
src/main/java/org/codelibs/core/io/FileUtil.java
if (size == bufferSize) { // Enforce MAX_BUF_SIZE to prevent unbounded memory growth final int newBufferSize = bufferSize + initialCapacity; if (newBufferSize > MAX_BUF_SIZE) { throw new IORuntimeException(new IOException("Content too large: exceeds maximum buffer size of " + MAX_BUF_SIZE + " bytes. Use streaming APIs for large content.")); }
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
* @throws Exception */ @Test public void testReadBytes_LargeFile() throws Exception { final File largeFile = tempFolder.newFile("large.dat"); // Create a file larger than MAX_BUF_SIZE (10MB) // Write 11MB of data try (FileOutputStream fos = new FileOutputStream(largeFile)) { final byte[] chunk = new byte[1024 * 1024]; // 1MBRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 10.3K bytes - Viewed (0)