- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for 10MB (0.02 sec)
-
src/test/java/org/codelibs/core/io/FileUtilTest.java
*/ @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]; // 1MB for (int i = 0; i < 11; i++) { // Write 11MBRegistered: 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/org/codelibs/core/io/FileUtil.java
/** * Reads the contents of a file into a byte array and returns it. * <p> * <strong>Note:</strong> This method loads the entire file into memory. * For files larger than {@value #MAX_BUF_SIZE} bytes (10MB), an * {@link IORuntimeException} will be thrown to prevent OutOfMemoryError. * For large files, use streaming APIs instead. * </p> * * @param fileRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (0)