Skip to content

Buffered Reader Implementation #3910

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

Merged
merged 9 commits into from
Mar 7, 2023
Merged

Buffered Reader Implementation #3910

merged 9 commits into from
Mar 7, 2023

Conversation

XomaDev
Copy link
Contributor

@XomaDev XomaDev commented Mar 6, 2023

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.

A class that offers similar features to Java's Buffered Reader.
As well as other functionalities as peek(n), block(), custom buffer sizes, etc.

XomaDev and others added 9 commits March 5, 2023 22:30
*Added generics to the class
*Simple Improvements
*Added method to peek(position)
*Improved the toString() method, uses the StringJoiner class
*Implemented Iterator:
     * Adds functionality for the user to travel through nodes using for() and forEach(Consumer) methods
*A class that mimics the functionality of the original Buffered Reader (may not be entirely)
*Offers other features such as peek() and block()
Copy link
Member

@siriak siriak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@siriak siriak merged commit b6563cf into TheAlgorithms:master Mar 7, 2023
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.

2 participants