mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add default buffer size
This commit is contained in:
@@ -51,12 +51,12 @@ import cn.hutool.core.util.StrUtil;
|
||||
*/
|
||||
public class IoUtil {
|
||||
|
||||
/** 默认缓存大小 */
|
||||
public static final int DEFAULT_BUFFER_SIZE = 2048;
|
||||
/** 默认中等缓存大小 */
|
||||
public static final int DEFAULT_MIDDLE_BUFFER_SIZE = 4096;
|
||||
/** 默认大缓存大小 */
|
||||
public static final int DEFAULT_LARGE_BUFFER_SIZE = 8192;
|
||||
/** 默认缓存大小 8192*/
|
||||
public static final int DEFAULT_BUFFER_SIZE = 2 << 12;
|
||||
/** 默认中等缓存大小 16384*/
|
||||
public static final int DEFAULT_MIDDLE_BUFFER_SIZE = 2 << 13;
|
||||
/** 默认大缓存大小 32768*/
|
||||
public static final int DEFAULT_LARGE_BUFFER_SIZE = 2 << 14;
|
||||
|
||||
/** 数据流末尾 */
|
||||
public static final int EOF = -1;
|
||||
|
13
hutool-core/src/test/java/cn/hutool/core/io/IoUtilTest.java
Normal file
13
hutool-core/src/test/java/cn/hutool/core/io/IoUtilTest.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package cn.hutool.core.io;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
|
||||
public class IoUtilTest {
|
||||
|
||||
@Test
|
||||
public void moveTest() {
|
||||
Console.log(2 << 14);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user