-
Notifications
You must be signed in to change notification settings - Fork 291
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
Allow InputStream or Reader as Parser input #2
Comments
What would be the viability of passing in more focused type, e.g. (And yes, the viability of |
That would make the common case of parsing a file or other stream of characters harder, because the caller would have to adapt a After some more thinking, I think we should add an overloaded I think a |
There may also be situations where |
All's good. 👍 |
Implemented with a new method |
Released in 0.2.0. |
Great! My first open source project commit. |
Oh, congratulations! Hopefully there will be many more :). |
Currently, the only input type is
String
. In case the input is read from a stream, this means it has to be read into aString
first, and then the parser has another copy of the data as block content.Accepting an
InputStream
(orReader
?) instead would allow to get rid of one of the copies.DocumentParser
already processes the input line by line, so this should be trivial.The text was updated successfully, but these errors were encountered: