We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 486500d commit 13c6f35Copy full SHA for 13c6f35
1 file changed
hutool-core/src/test/java/cn/hutool/core/io/Issue3846Test.java
@@ -0,0 +1,23 @@
1
+package cn.hutool.core.io;
2
+
3
+import cn.hutool.core.date.DateUtil;
4
+import cn.hutool.core.date.StopWatch;
5
+import cn.hutool.core.io.resource.ResourceUtil;
6
+import cn.hutool.core.lang.Console;
7
+import org.junit.jupiter.api.Disabled;
8
+import org.junit.jupiter.api.Test;
9
10
+import java.util.concurrent.TimeUnit;
11
12
+public class Issue3846Test {
13
+ @Test
14
+ @Disabled
15
+ void readBytesTest() {
16
+ final StopWatch stopWatch = DateUtil.createStopWatch();
17
+ stopWatch.start();
18
+ final String filePath = "d:/test/issue3846.data";
19
+ final byte[] bytes = IoUtil.readBytes(ResourceUtil.getStream(filePath), false);
20
+ stopWatch.stop();
21
+ Console.log(stopWatch.prettyPrint(TimeUnit.MILLISECONDS));
22
+ }
23
+}
0 commit comments