Skip to content

Code refactoring. + Synchronized methods getContent(), getContentWith…#453

Open
dev-blogs wants to merge 2 commits intoyegor256:masterfrom
dev-blogs:branch-created-by-dev-blogs-com
Open

Code refactoring. + Synchronized methods getContent(), getContentWith…#453
dev-blogs wants to merge 2 commits intoyegor256:masterfrom
dev-blogs:branch-created-by-dev-blogs-com

Conversation

@dev-blogs
Copy link
Copy Markdown

Code refactoring

  • Synchronized methods getContent(), getContentWithoutUnicode, saveContent()
  • Replaced String by StringBuilder in getContent() and getContentWithoutUnicode() methods
  • Replaced FileInputStream by FileReader in getContent() method
  • Optimazed reading by wrapping FileInputStream in getContentWithoutUnicode() method to BufferedInputStream and FileReader in getContent() method to BufferedFileReader

zheka added 2 commits November 27, 2020 23:08
…outUnicode, saveContent(). + Replaced String by StringBuilder in getContent and getContentWithoutUnicode methods. + Replaced FileInputStream by FileReader in getContent method. + Optimazed reading by wrapping FileInputStream in getContentWithoutUnicode method and FileReader in getContent method to BufferedInputStream and BufferedFileReader methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant