mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add store method
This commit is contained in:
@@ -2441,6 +2441,20 @@ public class FileUtil extends PathUtil {
|
||||
return new PrintWriter(getWriter(file, charset, isAppend));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得一个打印写入对象,可以有print
|
||||
*
|
||||
* @param file 文件
|
||||
* @param charset 字符集
|
||||
* @param isAppend 是否追加
|
||||
* @return 打印对象
|
||||
* @throws IORuntimeException IO异常
|
||||
* @since 5.4.3
|
||||
*/
|
||||
public static PrintWriter getPrintWriter(File file, Charset charset, boolean isAppend) throws IORuntimeException {
|
||||
return new PrintWriter(getWriter(file, charset, isAppend));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前系统的换行分隔符
|
||||
*
|
||||
|
Reference in New Issue
Block a user