Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

writeFileFromString不需要使用BufferedWriter #1760

Open
xmt328 opened this issue Apr 13, 2023 · 0 comments · May be fixed by #1761
Open

writeFileFromString不需要使用BufferedWriter #1760

xmt328 opened this issue Apr 13, 2023 · 0 comments · May be fixed by #1761
Assignees
Labels

Comments

@xmt328
Copy link

xmt328 commented Apr 13, 2023

描述 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants