This commit is contained in:
Looly 2025-01-24 17:13:54 +08:00
parent 3798347369
commit 8bd9938ff3
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package org.dromara.hutool.core.io;
import org.dromara.hutool.core.date.DateUtil;
import org.dromara.hutool.core.date.StopWatch;
import org.dromara.hutool.core.io.resource.ResourceUtil;
import org.dromara.hutool.core.lang.Console;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.util.concurrent.TimeUnit;
public class Issue3846Test {
@Test
@Disabled
void readBytesTest() {
final StopWatch stopWatch = DateUtil.createStopWatch();
stopWatch.start();
final String filePath = "d:/test/issue3846.data";
final byte[] bytes = IoUtil.readBytes(ResourceUtil.getStream(filePath), false);
stopWatch.stop();
Console.log(stopWatch.prettyPrint(TimeUnit.MILLISECONDS));
}
}

View File

@ -0,0 +1 @@
f1f5eafa000a0000828974000800680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000