- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for MAX_BUF_SIZE (0.04 seconds)
-
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
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/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]; // 1MBCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 10.3K bytes - Click Count (0)