You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Write the stream as a JSON stream with new line delimiters * {@literal application/x-json-stream}. * * @param stream The stream of beans to write as json */
<E> ContextjsonStream(Stream<E> stream);
/** * Write the stream as a JSON stream with new line delimiters * {@literal application/x-json-stream}. * * @param iterator The iterator of beans to write as json */
<E> ContextjsonStream(Iterator<E> iterator);
Note that when using Iterator internally it will check if the instance implements AutoCloseable and if so will close the iterator when all elements have been written. Stream implements AutoCloseable so that also gets closed.
The text was updated successfully, but these errors were encountered:
FYI @tipsy ... pretty sure you saw this but just in case. Right now I don't quite have time at the moment to prepare a PR for Javalin for this but let me know and tag me on a issue if/when we create one in Javalin.
Note that when using
Iterator
internally it will check if the instance implementsAutoCloseable
and if so will close the iterator when all elements have been written. Stream implements AutoCloseable so that also gets closed.The text was updated successfully, but these errors were encountered: