|
|
@@ -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;
|