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

Refactor Parser #437

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Refactor Parser #437

wants to merge 1 commit into from

Conversation

spoluyan
Copy link

@spoluyan spoluyan commented Oct 19, 2016

Refactoring list:

  • Use interface with implementation
  • Rename Parser to File
  • Move duplicated logic to if-case
  • Little optimization of reading (StringBuilder)
  • Move magic number 0x80 to constant
  • Try-with-resources in order to release streams
  • JavaDoc

Future possible refactorings and improvements:

  • Create unit tests
  • Rename File to something more sensible
  • Optimize I/O operations (with Buffered reader/writer or Java NIO or something else...)

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