We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We have BufferedReader.lines(): Stream<String> in Java, so I hope that BufferedSource can also integrate similar APIs.
BufferedReader.lines(): Stream<String>
BufferedSource
The text was updated successfully, but these errors were encountered:
I did an extension for that:
fun BufferedSource.utf8Lines(): Iterator<String> = object : AbstractIterator<String>() { override fun computeNext() { val nextLine = readUtf8Line() if (nextLine != null) { setNext(nextLine) } else { close() done() } } }
One issue is that IOException is ignored here
IOException
Sorry, something went wrong.
No branches or pull requests
We have
BufferedReader.lines(): Stream<String>
in Java, so I hope thatBufferedSource
can also integrate similar APIs.The text was updated successfully, but these errors were encountered: