This commit is contained in:
Looly 2024-08-11 17:14:10 +08:00
parent ddae419a10
commit eef88779cf
3 changed files with 6 additions and 6 deletions

View File

@ -57,12 +57,12 @@ public class FileAppender implements Serializable {
/** /**
* 构造 * 构造
* *
* @param destFile 目标文件 * @param targetFile 目标文件
* @param capacity 当行数积累多少条时刷入到文件 * @param capacity 当行数积累多少条时刷入到文件
* @param isNewLineMode 追加内容是否为新行 * @param isNewLineMode 追加内容是否为新行
*/ */
public FileAppender(final File destFile, final int capacity, final boolean isNewLineMode) { public FileAppender(final File targetFile, final int capacity, final boolean isNewLineMode) {
this(destFile, CharsetUtil.UTF_8, capacity, isNewLineMode); this(targetFile, CharsetUtil.UTF_8, capacity, isNewLineMode);
} }
/** /**

View File

@ -322,7 +322,7 @@ public class FileWriter extends FileWrapper {
* 此方法会自动关闭输入流 * 此方法会自动关闭输入流
* *
* @param in 输入流不关闭 * @param in 输入流不关闭
* @return dest * @return file
* @throws IORuntimeException IO异常 * @throws IORuntimeException IO异常
*/ */
public File writeFromStream(final InputStream in) throws IORuntimeException { public File writeFromStream(final InputStream in) throws IORuntimeException {
@ -334,7 +334,7 @@ public class FileWriter extends FileWrapper {
* *
* @param in 输入流不关闭 * @param in 输入流不关闭
* @param isCloseIn 是否关闭输入流 * @param isCloseIn 是否关闭输入流
* @return dest * @return file
* @throws IORuntimeException IO异常 * @throws IORuntimeException IO异常
* @since 5.5.2 * @since 5.5.2
*/ */

View File

@ -265,7 +265,7 @@ public class PathUtil {
* @since 5.8.27 * @since 5.8.27
*/ */
public static Path copy(final InputStream src, final Path target, final CopyOption... options) throws IORuntimeException { public static Path copy(final InputStream src, final Path target, final CopyOption... options) throws IORuntimeException {
Assert.notNull(target, "Target File or directory is null !"); Assert.notNull(target, "Targetw File or directory is null !");
// 创建级联父目录 // 创建级联父目录
mkParentDirs(target); mkParentDirs(target);