Skip to content

Commit

Permalink
jakartaee#339 - Support x-json-stream, add JsonGenerator writeNewLine()
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Dec 14, 2021
1 parent 2da545b commit da8ae6f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/src/main/java/jakarta/json/stream/JsonGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,16 @@ public interface JsonGenerator extends Flushable, /*Auto*/Closeable {
*/
JsonGenerator writeNull();

/**
* Writes the new line character to the underlying content.
* This enables a generator to support {@code x-json-stream} new line delimited content.
*
* @return this generator
* @throws jakarta.json.JsonException if an i/o error occurs (IOException
* would be cause of JsonException)
*/
JsonGenerator writeNewLine();

/**
* Closes this generator and frees any resources associated with it.
* This method closes the underlying output source.
Expand Down

0 comments on commit da8ae6f

Please sign in to comment.