We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b2547 commit d166d5dCopy full SHA for d166d5d
api/src/main/java/jakarta/json/stream/JsonParser.java
@@ -252,6 +252,17 @@ enum Event {
252
*/
253
Event next();
254
255
+ /**
256
+ * Returns the event for the current parsing state.
257
+ *
258
+ * @return the event for the current parsing state
259
260
+ * @since 2.1
261
+ */
262
+ default public Event currentEvent() {
263
+ throw new UnsupportedOperationException();
264
+ }
265
+
266
/**
267
* Returns a {@code String} for the name in a name/value pair,
268
* for a string value or a number value. This method should only be called
0 commit comments