add store method

This commit is contained in:
Looly
2020-09-10 18:11:04 +08:00
parent 76c6aeeb56
commit d23bdd9280
6 changed files with 95 additions and 15 deletions

View File

@@ -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));
}
/**
* 获取当前系统的换行分隔符
*