Skip to content

Conversation

dev-blogs
Copy link

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