Skip to content

writeFileFromString不需要使用BufferedWriter #1760

Open
@xmt328

Description

@xmt328

描述 Bug

该方法为一次性写入,无论数据长度为多少都没有缓存的必要
因此可以直接使用FileWriter,减少Buffer的开销

  • AndroidUtilCode 的版本:utilcodex:1.31.1

相关代码

FileIOUtils.java Line 542

public static boolean writeFileFromString(final File file,
                                              final String content,
                                              final boolean append)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions